Merge "Add null check on mRecentsView in the InputConsumerProxy" into tm-qpr-dev
This commit is contained in:
commit
ca6480341e
1 file changed
+6
-3
@@ -297,9 +297,12 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
|
|||||||
mActivityInterface = gestureState.getActivityInterface();
|
mActivityInterface = gestureState.getActivityInterface();
|
||||||
mActivityInitListener = mActivityInterface.createActivityInitListener(this::onActivityInit);
|
mActivityInitListener = mActivityInterface.createActivityInitListener(this::onActivityInit);
|
||||||
mInputConsumerProxy =
|
mInputConsumerProxy =
|
||||||
new InputConsumerProxy(context,
|
new InputConsumerProxy(context, /* rotationSupplier = */ () -> {
|
||||||
() -> mRecentsView.getPagedViewOrientedState().getRecentsActivityRotation(),
|
if (mRecentsView == null) {
|
||||||
inputConsumer, () -> {
|
return ROTATION_0;
|
||||||
|
}
|
||||||
|
return mRecentsView.getPagedViewOrientedState().getRecentsActivityRotation();
|
||||||
|
}, inputConsumer, /* callback = */ () -> {
|
||||||
endRunningWindowAnim(mGestureState.getEndTarget() == HOME /* cancel */);
|
endRunningWindowAnim(mGestureState.getEndTarget() == HOME /* cancel */);
|
||||||
endLauncherTransitionController();
|
endLauncherTransitionController();
|
||||||
}, new InputProxyHandlerFactory(mActivityInterface, mGestureState));
|
}, new InputProxyHandlerFactory(mActivityInterface, mGestureState));
|
||||||
|
|||||||
Reference in new issue
Block a user