Fix null-pointer in AbsSwipeUpHandler.buildAnimationController

Flag: not needed
Fixes: 271248485
Test: ran launcher
Change-Id: Ia9e0e68b9ee9273d82ed791b421a10ccb1fcdef2
This commit is contained in:
Schneider Victor-tulias
2023-06-07 10:39:25 -07:00
parent 014a684343
commit 1834581bc0
@@ -830,7 +830,8 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
* @return Whether we can create the launcher controller or update its progress.
*/
private boolean canCreateNewOrUpdateExistingLauncherTransitionController() {
return mGestureState.getEndTarget() != HOME && !mHasEndedLauncherTransition;
return mGestureState.getEndTarget() != HOME
&& !mHasEndedLauncherTransition && mActivity != null;
}
@Override