Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +2 −1 Original line number Diff line number Diff line Loading @@ -3198,7 +3198,8 @@ public class NotificationPanelViewController extends PanelViewController { return false; } if (mDoubleTapToSleepEnabled && mBarState == StatusBarState.KEYGUARD) { if (mDoubleTapToSleepEnabled && mBarState == StatusBarState.KEYGUARD && !mPulsing && !mDozing) { mDoubleTapGesture.onTouchEvent(event); } Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationShadeWindowViewController.java +7 −1 Original line number Diff line number Diff line Loading @@ -116,6 +116,8 @@ public class NotificationShadeWindowViewController { private boolean mDoubleTapToSleepEnabled; private int mQuickQsOffsetHeight; private boolean mDoubleTapEnabledNative; @Inject public NotificationShadeWindowViewController( InjectionInflationController injectionInflationController, Loading Loading @@ -174,6 +176,9 @@ public class NotificationShadeWindowViewController { AmbientDisplayConfiguration configuration = new AmbientDisplayConfiguration(mView.getContext()); switch (key) { case Settings.Secure.DOUBLE_TAP_TO_WAKE: mDoubleTapEnabledNative = TunerService.parseIntegerSwitch(newValue, false); break; case Settings.Secure.DOZE_DOUBLE_TAP_GESTURE: mDoubleTapEnabled = configuration.doubleTapGestureEnabled( UserHandle.USER_CURRENT); Loading @@ -187,6 +192,7 @@ public class NotificationShadeWindowViewController { } }; mTunerService.addTunable(tunable, Settings.Secure.DOUBLE_TAP_TO_WAKE, Settings.Secure.DOZE_DOUBLE_TAP_GESTURE, Settings.Secure.DOZE_TAP_SCREEN_GESTURE, DOUBLE_TAP_SLEEP_GESTURE); Loading @@ -212,7 +218,7 @@ public class NotificationShadeWindowViewController { mPowerManager.goToSleep(e.getEventTime()); return true; } if (mDoubleTapEnabled || mSingleTapEnabled) { if (mDoubleTapEnabled || mSingleTapEnabled || mDoubleTapEnabledNative) { mService.wakeUpIfDozing( SystemClock.uptimeMillis(), mView, "DOUBLE_TAP"); return true; Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +2 −1 Original line number Diff line number Diff line Loading @@ -3198,7 +3198,8 @@ public class NotificationPanelViewController extends PanelViewController { return false; } if (mDoubleTapToSleepEnabled && mBarState == StatusBarState.KEYGUARD) { if (mDoubleTapToSleepEnabled && mBarState == StatusBarState.KEYGUARD && !mPulsing && !mDozing) { mDoubleTapGesture.onTouchEvent(event); } Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationShadeWindowViewController.java +7 −1 Original line number Diff line number Diff line Loading @@ -116,6 +116,8 @@ public class NotificationShadeWindowViewController { private boolean mDoubleTapToSleepEnabled; private int mQuickQsOffsetHeight; private boolean mDoubleTapEnabledNative; @Inject public NotificationShadeWindowViewController( InjectionInflationController injectionInflationController, Loading Loading @@ -174,6 +176,9 @@ public class NotificationShadeWindowViewController { AmbientDisplayConfiguration configuration = new AmbientDisplayConfiguration(mView.getContext()); switch (key) { case Settings.Secure.DOUBLE_TAP_TO_WAKE: mDoubleTapEnabledNative = TunerService.parseIntegerSwitch(newValue, false); break; case Settings.Secure.DOZE_DOUBLE_TAP_GESTURE: mDoubleTapEnabled = configuration.doubleTapGestureEnabled( UserHandle.USER_CURRENT); Loading @@ -187,6 +192,7 @@ public class NotificationShadeWindowViewController { } }; mTunerService.addTunable(tunable, Settings.Secure.DOUBLE_TAP_TO_WAKE, Settings.Secure.DOZE_DOUBLE_TAP_GESTURE, Settings.Secure.DOZE_TAP_SCREEN_GESTURE, DOUBLE_TAP_SLEEP_GESTURE); Loading @@ -212,7 +218,7 @@ public class NotificationShadeWindowViewController { mPowerManager.goToSleep(e.getEventTime()); return true; } if (mDoubleTapEnabled || mSingleTapEnabled) { if (mDoubleTapEnabled || mSingleTapEnabled || mDoubleTapEnabledNative) { mService.wakeUpIfDozing( SystemClock.uptimeMillis(), mView, "DOUBLE_TAP"); return true; Loading