summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherState.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2018-09-05 12:47:21 -0700
committerSunny Goyal <sunnygoyal@google.com>2018-09-05 17:32:50 -0700
commitcf300fc9800fe9e351276cd62c5b899ccad7490c (patch)
treec24cdc1ad617dfe05d07487188ac2ce4a681e559 /src/com/android/launcher3/LauncherState.java
parent6b597b823d861699a1de1670f0248bdffe02293d (diff)
downloadandroid_packages_apps_Trebuchet-cf300fc9800fe9e351276cd62c5b899ccad7490c.tar.gz
android_packages_apps_Trebuchet-cf300fc9800fe9e351276cd62c5b899ccad7490c.tar.bz2
android_packages_apps_Trebuchet-cf300fc9800fe9e351276cd62c5b899ccad7490c.zip
Creating a separate state for launcehr as background app
This makes is simpler to control the swipe to overview UI, and ties the transition with the state machine Bug: 113287120 Bug: 79755195 Bug: 112203163 Change-Id: I3041dbb659b46ccea6284855addc91e370815be6
Diffstat (limited to 'src/com/android/launcher3/LauncherState.java')
-rw-r--r--src/com/android/launcher3/LauncherState.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/com/android/launcher3/LauncherState.java b/src/com/android/launcher3/LauncherState.java
index bbe44c005..beef97e4f 100644
--- a/src/com/android/launcher3/LauncherState.java
+++ b/src/com/android/launcher3/LauncherState.java
@@ -22,11 +22,11 @@ import static android.view.accessibility.AccessibilityEvent.TYPE_WINDOW_STATE_CH
import static com.android.launcher3.anim.Interpolators.ACCEL_2;
import static com.android.launcher3.states.RotationHelper.REQUEST_NONE;
-import android.graphics.Rect;
import android.view.animation.Interpolator;
import com.android.launcher3.states.SpringLoadedState;
import com.android.launcher3.uioverrides.AllAppsState;
+import com.android.launcher3.uioverrides.BackgroundAppState;
import com.android.launcher3.uioverrides.FastOverviewState;
import com.android.launcher3.uioverrides.OverviewState;
import com.android.launcher3.uioverrides.UiFactory;
@@ -73,7 +73,7 @@ public class LauncherState {
}
};
- private static final LauncherState[] sAllStates = new LauncherState[5];
+ private static final LauncherState[] sAllStates = new LauncherState[6];
/**
* TODO: Create a separate class for NORMAL state.
@@ -89,8 +89,7 @@ public class LauncherState {
public static final LauncherState OVERVIEW = new OverviewState(2);
public static final LauncherState FAST_OVERVIEW = new FastOverviewState(3);
public static final LauncherState ALL_APPS = new AllAppsState(4);
-
- protected static final Rect sTempRect = new Rect();
+ public static final LauncherState BACKGROUND_APP = new BackgroundAppState(5);
public final int ordinal;