mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Merge "Add null check on mRecentsView in the InputConsumerProxy" into tm-qpr-dev
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user