@@ -102,9 +102,7 @@ SystemTask::SystemTask(Drivers::SpiMaster& spi,
102102 spiNorFlash,
103103 heartRateController,
104104 motionController,
105- fs),
106- wokenBy {WokenBy::Other},
107- ignoreNextTouchEvent {false } {
105+ fs) {
108106}
109107
110108void SystemTask::Start () {
@@ -267,7 +265,8 @@ void SystemTask::Work() {
267265 break ;
268266 }
269267 case Messages::GoToSleep:
270- displayApp.HideIgnoreTouchPopup (true );
268+ ignoreTouchPopupHidden = true ;
269+ displayApp.PushMessage (Pinetime::Applications::Display::Messages::HideIgnoreTouchPopup);
271270 if (doNotGoToSleep) {
272271 break ;
273272 }
@@ -362,14 +361,16 @@ void SystemTask::Work() {
362361 // if we get to here TouchEvents is allowed and the "ButtonUnlocks" requirement can be overridden
363362 wokenBy = WokenBy::Other;
364363 } else {
365- displayApp.HideIgnoreTouchPopup (false );
364+ ignoreTouchPopupHidden = false ;
365+ displayApp.PushMessage (Pinetime::Applications::Display::Messages::ShowIgnoreTouchPopup);
366366 }
367367 break ;
368368 case Messages::HandleButtonEvent: {
369369 // if the IgnoreTouchPopup is active the first button event unlocks the device
370- if (!displayApp. IsIgnoreTouchPopupHidden () ) {
370+ if (!ignoreTouchPopupHidden ) {
371371 wokenBy = WokenBy::Button;
372- displayApp.HideIgnoreTouchPopup (true );
372+ ignoreTouchPopupHidden = true ;
373+ displayApp.PushMessage (Pinetime::Applications::Display::Messages::HideIgnoreTouchPopup);
373374 break ;
374375 }
375376 Controllers::ButtonActions action;
0 commit comments