Merge "Add null check when resetting animation" into sc-dev

This commit is contained in:
Winson Chung authored and Android (Google) Code Review committed 2021-04-22 22:09:07 +00:00
commit b2a72da335
1 file changed
+3 -1
@@ -1395,7 +1395,9 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
mActivityInterface.onTransitionCancelled(wasVisible);
// Leave the pending invisible flag, as it may be used by wallpaper open animation.
mActivity.clearForceInvisibleFlag(INVISIBLE_BY_STATE_HANDLER);
if (mActivity != null) {
mActivity.clearForceInvisibleFlag(INVISIBLE_BY_STATE_HANDLER);
}
}
protected void switchToScreenshot() {