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

Commit 3bab3d86 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Let single tap devices wake up with double tap

Users might double tap twice by mistake, and the device should still
wake up.

Test: manual
Fixes: 129090210
Change-Id: I55fc963d1f4e9d355ccf3d4ee8cbe9087b8e50cf
parent 2e5dd8cf
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -114,17 +114,19 @@ public class StatusBarWindowView extends FrameLayout {
            if (mSingleTapEnabled) {
                mService.wakeUpIfDozing(SystemClock.uptimeMillis(), StatusBarWindowView.this,
                        "SINGLE_TAP");
                return true;
            }
            return mSingleTapEnabled;
            return false;
        }

        @Override
        public boolean onDoubleTap(MotionEvent e) {
            if (mDoubleTapEnabled) {
            if (mDoubleTapEnabled || mSingleTapEnabled) {
                mService.wakeUpIfDozing(SystemClock.uptimeMillis(), StatusBarWindowView.this,
                        "DOUBLE_TAP");
                return true;
            }
            return mDoubleTapEnabled;
            return false;
        }
    };
    private final TunerService.Tunable mTunable = (key, newValue) -> {