diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2018-05-11 15:25:57 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2018-05-11 15:26:28 -0700 |
commit | 6e180fdee5eb26cce398e58c659cfc7e1f0f1381 (patch) | |
tree | 1bfa5f08922e9eb5bb2793e0d4ebc5176f8f85af /quickstep | |
parent | 7f71198dc833f4b7048409d0108af35dec8769ef (diff) | |
download | android_packages_apps_Trebuchet-6e180fdee5eb26cce398e58c659cfc7e1f0f1381.tar.gz android_packages_apps_Trebuchet-6e180fdee5eb26cce398e58c659cfc7e1f0f1381.tar.bz2 android_packages_apps_Trebuchet-6e180fdee5eb26cce398e58c659cfc7e1f0f1381.zip |
Restoring the vertical progress if the task launch failed
Bug: 79170705
Change-Id: I7b2075f7a4bad2acdc55a15b7c7a35fdbd60514e
Diffstat (limited to 'quickstep')
-rw-r--r-- | quickstep/src/com/android/quickstep/views/LauncherRecentsView.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java b/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java index e237500eb..950f7fb99 100644 --- a/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java +++ b/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java @@ -148,6 +148,9 @@ public class LauncherRecentsView extends RecentsView<Launcher> { protected void onTaskLaunched(boolean success) { if (success) { mActivity.getStateManager().goToState(NORMAL, false /* animate */); + } else { + LauncherState state = mActivity.getStateManager().getState(); + mActivity.getAllAppsController().setProgress(state.getVerticalProgress(mActivity)); } super.onTaskLaunched(success); } |