Rearranging the code structure to allow replacing state logic.

Change-Id: I6f83d0f77045ba189f02dd465bf70ffc2a239aa1
This commit is contained in:
Sunny Goyal committed 2017-11-06 14:57:50 -08:00
1 parent 4dcc2617f5
commit 85525173ce
14 files changed
+130 -81

No files matched your search

@@ -16,9 +16,6 @@
package com.android.launcher3.config;
import com.android.launcher3.LauncherState;
import com.android.launcher3.states.OverviewState;
/**
* Defines a set of flags used to control various launcher behaviors.
*
@@ -32,10 +29,10 @@ abstract class BaseFlags {
BaseFlags() {}
public static final boolean IS_DOGFOOD_BUILD = false;
public static final String AUTHORITY = "com.android.launcher3.settings".intern();
// Custom flags go below this
public static boolean LAUNCHER3_DISABLE_ICON_NORMALIZATION = false;
public static boolean LAUNCHER3_DISABLE_PINCH_TO_OVERVIEW = false;
// When enabled allows to use any point on the fast scrollbar to start dragging.
public static final boolean LAUNCHER3_DIRECT_SCROLL = true;
// When enabled the promise icon is visible in all apps while installation an app.
@@ -62,7 +59,4 @@ abstract class BaseFlags {
// Features to control Launcher3Go behavior
public static final boolean GO_DISABLE_WIDGETS = false;
public static LauncherState createOverviewState(int id) {
return new OverviewState(id);
}
}