Restoring the vertical progress if the task launch failed

Bug: 79170705
Change-Id: I7b2075f7a4bad2acdc55a15b7c7a35fdbd60514e
This commit is contained in:
Sunny Goyal
2018-05-11 15:25:57 -07:00
parent 7f71198dc8
commit 6e180fdee5

View File

@@ -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);
}