File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -264,15 +264,16 @@ void SystemTask::Work() {
264264 case Messages::TouchWakeUp: {
265265 if (touchHandler.GetNewTouchInfo ()) {
266266 auto gesture = touchHandler.GestureGet ();
267- if (gesture != Pinetime::Applications::TouchEvents::None and
268- ((gesture == Pinetime::Applications::TouchEvents::DoubleTap and
269- settingsController.isWakeUpModeOn (Pinetime::Controllers::Settings::WakeUpMode::DoubleTap)) or
270- (gesture == Pinetime::Applications::TouchEvents::Tap and
267+ if (gesture != Pinetime::Applications::TouchEvents::None &&
268+ ((gesture == Pinetime::Applications::TouchEvents::DoubleTap &&
269+ settingsController.isWakeUpModeOn (Pinetime::Controllers::Settings::WakeUpMode::DoubleTap)) ||
270+ (gesture == Pinetime::Applications::TouchEvents::Tap &&
271271 settingsController.isWakeUpModeOn (Pinetime::Controllers::Settings::WakeUpMode::SingleTap)))) {
272272 GoToRunning ();
273273 }
274274 }
275- } break ;
275+ break ;
276+ }
276277 case Messages::GoToSleep:
277278 if (doNotGoToSleep) {
278279 break ;
You can’t perform that action at this time.
0 commit comments