Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e180fde authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Restoring the vertical progress if the task launch failed

Bug: 79170705
Change-Id: I7b2075f7a4bad2acdc55a15b7c7a35fdbd60514e
parent 7f71198d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);
    }