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

Commit 368d4276 authored by Vinit Nayak's avatar Vinit Nayak
Browse files

Prevent showing divider if launcher was never shown

* With stashing recents animation gets cancelled
almost instantly, so there's no point trying to
"show" the divider bar if it was never hidden
* We can use launcher showing as a good enough
proxy for whether the divider bar was ever hidden
to begin with

Fixes: 230825541
Test: Stashing/unstashing didn't cause crash
Change-Id: I3abc4ecf3605a66e67db971ae14aa6ec493d8f32
parent 863ebce7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1676,7 +1676,7 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
        boolean wasVisible = mWasLauncherAlreadyVisible || mGestureStarted;
        mActivityInterface.onTransitionCancelled(wasVisible, mGestureState.getEndTarget());

        if (mRecentsAnimationTargets != null) {
        if (mRecentsAnimationTargets != null && wasVisible) {
            setDividerShown(true /* shown */, true /* immediate */);
        }