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

Commit bd508496 authored by Abhishek Aggarwal's avatar Abhishek Aggarwal Committed by Sahil Sonar
Browse files

fix(widget) : Properly account for -1 page so touch are intercepted correctly



[SahilSonar - adapted to A14]

Signed-off-by: default avatarSahilSonar <sss.sonar2003@gmail.com>
parent b6797a09
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -128,7 +128,8 @@ public class StatusBarTouchController implements TouchController {
            // when there is single touch event. (context: InputDispatcher.cpp line 1445)
            if (dy > mTouchSlop && dy > Math.abs(dx) && ev.getPointerCount() == 1 &&
                    (!MultiModeController.isSingleLayerMode() ||
                            mLauncher.swipeSearchContainer.getVisibility() == View.GONE)) {
                            (mLauncher.swipeSearchContainer.getVisibility() == View.GONE &&
                                    mLauncher.getWorkspace().getCurrentPage() != 0))) {
                ev.setAction(ACTION_DOWN);
                dispatchTouchEvent(ev);
                setWindowSlippery(true);