commit | 6e180fdee5eb26cce398e58c659cfc7e1f0f1381 | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Fri May 11 15:25:57 2018 -0700 |
committer | Sunny Goyal <sunnygoyal@google.com> | Fri May 11 15:26:28 2018 -0700 |
tree | 1bfa5f08922e9eb5bb2793e0d4ebc5176f8f85af | |
parent | 7f71198dc833f4b7048409d0108af35dec8769ef [diff] |
Restoring the vertical progress if the task launch failed Bug: 79170705 Change-Id: I7b2075f7a4bad2acdc55a15b7c7a35fdbd60514e
diff --git a/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java b/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java index e237500..950f7fb 100644 --- a/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java +++ b/quickstep/src/com/android/quickstep/views/LauncherRecentsView.java
@@ -148,6 +148,9 @@ 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); }