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

Commit 5841b168 authored by Tony Wickham's avatar Tony Wickham
Browse files

Add null check for mRecentsView when recents animation is canceled

Flag: none
Test: TaplTestsPersistentTaskbar#testHideTaskbarPersistsOnRecreate
Fixes: 295796661
Change-Id: Idb454105cc86f1b9dbe720ba0ee28ad03436ec14
parent ff1428ab
Loading
Loading
Loading
Loading
+16 −14
Original line number Diff line number Diff line
@@ -518,6 +518,8 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
        // Set up a entire animation lifecycle callback to notify the current recents view when
        // the animation is canceled
        mGestureState.runOnceAtState(STATE_RECENTS_ANIMATION_CANCELED, () -> {
            if (mRecentsView == null) return;

            HashMap<Integer, ThumbnailData> snapshots =
                    mGestureState.consumeRecentsAnimationCanceledSnapshot();
            if (snapshots != null) {