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

Commit 31355d74 authored by Arian's avatar Arian Committed by Bruno Martins
Browse files

NotificationPanelViewController: Fix DT2S gesture handling

* Checking if mBarState equals keyguard here causes an issue so that
  three taps are required until the screen turns off.
* The check does not seem to be needed here, hence remove it to fix
  this issue.

Behavior without this patch: https://imgur.com/a/EISQDAF
Behavior with this patch: https://imgur.com/a/vsQHveD

Change-Id: I9f2d3c63d397c998bea5137f747a9ad95ae2c746
parent 48fa9f4f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3198,8 +3198,7 @@ public class NotificationPanelViewController extends PanelViewController {
                    return false;
                }

                if (mDoubleTapToSleepEnabled && mBarState == StatusBarState.KEYGUARD
                        && !mPulsing && !mDozing) {
                if (mDoubleTapToSleepEnabled && !mPulsing && !mDozing) {
                    mDoubleTapGesture.onTouchEvent(event);
                }