Prevent NPE when resetting divider bar visibility
Fix: 195325902 Test: atest com.android.launcher3.memory.MemoryTests#testActivityRecreation --rerun-until-failure Change-Id: I12c48fe2834a225c5f7d042be632ddd29135b7c5
This commit is contained in:
parent
b999186b9e
commit
6368746a3c
|
@ -1534,7 +1534,9 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
|
|||
boolean wasVisible = mWasLauncherAlreadyVisible || mGestureStarted;
|
||||
mActivityInterface.onTransitionCancelled(wasVisible, mGestureState.getEndTarget());
|
||||
|
||||
TaskViewUtils.setDividerBarShown(mRecentsAnimationTargets.nonApps, true);
|
||||
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) {
|
||||
|
|
Loading…
Reference in New Issue