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

Commit 8be50400 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing onStateTransitionEnd is not called at the end of reset state

Bug: 135299165
Bug: 133867119
Change-Id: Ifac762a44fa45dfef72a9357f09fc96c34162565
parent f46e3956
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -223,6 +223,7 @@ public class LauncherStateManager {
    }

    public void reapplyState(boolean cancelCurrentAnimation) {
        boolean wasInAnimation = mConfig.mCurrentAnimation != null;
        if (cancelCurrentAnimation) {
            cancelAnimation();
        }
@@ -230,6 +231,9 @@ public class LauncherStateManager {
            for (StateHandler handler : getStateHandlers()) {
                handler.setState(mState);
            }
            if (wasInAnimation) {
                onStateTransitionEnd(mState);
            }
        }
    }