summaryrefslogtreecommitdiffstats
path: root/quickstep
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2019-06-28 15:51:15 -0700
committerSunny Goyal <sunnygoyal@google.com>2019-06-28 15:51:27 -0700
commit7d3c299a08e645fd9baa8816634c90a66107fe69 (patch)
tree28ed9e0ab2650d37949caa574238f0a86a179cfd /quickstep
parent0e188d051e01a3f68c678b1ec117395a1e41806a (diff)
downloadandroid_packages_apps_Trebuchet-7d3c299a08e645fd9baa8816634c90a66107fe69.tar.gz
android_packages_apps_Trebuchet-7d3c299a08e645fd9baa8816634c90a66107fe69.tar.bz2
android_packages_apps_Trebuchet-7d3c299a08e645fd9baa8816634c90a66107fe69.zip
Resetting UI state when the last has launched from Launcher
Bug: 135038270 Change-Id: I4a563116d8c7715163671dfffdfcf0f886e21623
Diffstat (limited to 'quickstep')
-rw-r--r--quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/states/QuickSwitchState.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/states/QuickSwitchState.java b/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/states/QuickSwitchState.java
index cdc271fdd..6c9f46fc4 100644
--- a/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/states/QuickSwitchState.java
+++ b/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/states/QuickSwitchState.java
@@ -57,6 +57,8 @@ public class QuickSwitchState extends BackgroundAppState {
if (!success) {
launcher.getStateManager().goToState(OVERVIEW);
tasktolaunch.notifyTaskLaunchFailed(TAG);
+ } else {
+ launcher.getStateManager().moveToRestState();
}
}, new Handler(Looper.getMainLooper()));
} else {