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

Commit ce563b6b authored by Tony Wickham's avatar Tony Wickham
Browse files

Add null check on mRecentsView in the InputConsumerProxy

Test: N/A
Fixes: 237217685
Change-Id: I45352f180e3df3298039b183eee743e5a246f543
parent 84f9f74c
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -297,9 +297,12 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
        mActivityInterface = gestureState.getActivityInterface();
        mActivityInitListener = mActivityInterface.createActivityInitListener(this::onActivityInit);
        mInputConsumerProxy =
                new InputConsumerProxy(context,
                        () -> mRecentsView.getPagedViewOrientedState().getRecentsActivityRotation(),
                        inputConsumer, () -> {
                new InputConsumerProxy(context, /* rotationSupplier = */ () -> {
                    if (mRecentsView == null) {
                        return ROTATION_0;
                    }
                    return mRecentsView.getPagedViewOrientedState().getRecentsActivityRotation();
                }, inputConsumer, /* callback = */ () -> {
                    endRunningWindowAnim(mGestureState.getEndTarget() == HOME /* cancel */);
                    endLauncherTransitionController();
                }, new InputProxyHandlerFactory(mActivityInterface, mGestureState));