mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Changing default screen to 0
Change-Id: I16b2440f99d4b91a3a74226cdac7054e7d5fd7f5
This commit is contained in:
@@ -253,8 +253,8 @@ public class InstallShortcutReceiver extends BroadcastReceiver {
|
||||
// Try adding to the workspace screens incrementally, starting at the default or center
|
||||
// screen and alternating between +1, -1, +2, -2, etc. (using ~ ceil(i/2f)*(-1)^(i-1))
|
||||
final int screen = Launcher.DEFAULT_SCREEN;
|
||||
for (int i = 0; i < (2 * Launcher.SCREEN_COUNT) + 1 && !found; ++i) {
|
||||
int si = screen + (int) ((i / 2f) + 0.5f) * ((i % 2 == 1) ? 1 : -1);
|
||||
for (int i = 0; i < Launcher.SCREEN_COUNT; i++) {
|
||||
int si = i;
|
||||
if (0 <= si && si < Launcher.SCREEN_COUNT) {
|
||||
found = installShortcut(context, data, items, name, intent, si, exists, sp,
|
||||
result);
|
||||
|
||||
Reference in New Issue
Block a user