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

Commit dc811346 authored by Tracy Zhou's avatar Tracy Zhou Committed by Android (Google) Code Review
Browse files

Merge "Migrate trackpad 3-finger swipe to pull down notifications away from...

Merge "Migrate trackpad 3-finger swipe to pull down notifications away from ShadeViewController.handleExternalTouch" into main
parents 99384279 f9579fda
Loading
Loading
Loading
Loading
+15 −2
Original line number Diff line number Diff line
@@ -253,8 +253,21 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis

        @Override
        public void onStatusBarTrackpadEvent(MotionEvent event) {
            verifyCallerAndClearCallingIdentityPostMain("onStatusBarTrackpadEvent", () ->
                    mShadeViewControllerLazy.get().handleExternalTouch(event));
            verifyCallerAndClearCallingIdentityPostMain("onStatusBarTrackpadEvent", () -> {
                if (SceneContainerFlag.isEnabled()) {
                    int action = event.getActionMasked();
                    if (action == ACTION_DOWN) {
                        mSceneInteractor.get().onRemoteUserInteractionStarted(
                                "trackpad swipe");
                    } else if (action == ACTION_UP) {
                        mSceneInteractor.get().changeScene(
                                Scenes.Shade, "short trackpad swipe");
                    }
                    mStatusBarWinController.getWindowRootView().dispatchTouchEvent(event);
                } else {
                    mShadeViewControllerLazy.get().handleExternalTouch(event);
                }
            });
        }

        @Override