Skip to content

Commit f5e364a

Browse files
committed
SystemTask: unlock at double button press as well, fixes segfault
1 parent bd12bb3 commit f5e364a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/systemtask/SystemTask.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,11 @@ void SystemTask::HandleButtonAction(Controllers::ButtonActions action) {
506506
}
507507
break;
508508
case Actions::DoubleClick:
509+
if (!unlockedByButton) {
510+
// the first button event unlocks the touch input
511+
unlockedByButton = true;
512+
displayApp.PushMessage(Pinetime::Applications::Display::Messages::HideIgnoreTouchPopup);
513+
}
509514
displayApp.PushMessage(Applications::Display::Messages::ButtonDoubleClicked);
510515
break;
511516
case Actions::LongPress:

0 commit comments

Comments
 (0)