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

Commit f9579fda authored by Tracy Zhou's avatar Tracy Zhou
Browse files

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

Migrate trackpad 3-finger swipe to pull down notifications away from ShadeViewController.handleExternalTouch

TODO - still work needs to be done for swiping up from shade to close it

Bug: 331916995
Test: Enable flexiglass, use 3-finger swipe down from home, app, or overview to pull down shade
Change-Id: I21d82d788ab011f497025dd913680783f8363617
parent 2bd7c360
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