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

Commit 6368746a authored by Jerry Chang's avatar Jerry Chang
Browse files

Prevent NPE when resetting divider bar visibility

Fix: 195325902
Test: atest
com.android.launcher3.memory.MemoryTests#testActivityRecreation
--rerun-until-failure

Change-Id: I12c48fe2834a225c5f7d042be632ddd29135b7c5
parent b999186b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1534,7 +1534,9 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
        boolean wasVisible = mWasLauncherAlreadyVisible || mGestureStarted;
        mActivityInterface.onTransitionCancelled(wasVisible, mGestureState.getEndTarget());

        if (mRecentsAnimationTargets != null) {
            TaskViewUtils.setDividerBarShown(mRecentsAnimationTargets.nonApps, true);
        }

        // Leave the pending invisible flag, as it may be used by wallpaper open animation.
        if (mActivity != null) {