From 1516b082fd75a1c68d98862199bd349175d37a8f Mon Sep 17 00:00:00 2001 From: Riku Isokoski Date: Thu, 23 Feb 2023 13:35:29 +0200 Subject: TouchHandler: Do not store touch panel reference --- src/systemtask/SystemTask.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/systemtask') diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp index 38bba1a5..2f29dc7a 100644 --- a/src/systemtask/SystemTask.cpp +++ b/src/systemtask/SystemTask.cpp @@ -250,7 +250,7 @@ void SystemTask::Work() { isDimmed = false; break; case Messages::TouchWakeUp: { - if (touchHandler.GetNewTouchInfo()) { + if (touchHandler.ProcessTouchInfo(touchPanel.GetTouchInfo())) { auto gesture = touchHandler.GestureGet(); if (settingsController.GetNotificationStatus() != Controllers::Settings::Notification::Sleep && gesture != Pinetime::Applications::TouchEvents::None && @@ -342,7 +342,7 @@ void SystemTask::Work() { // TODO add intent of fs access icon or something break; case Messages::OnTouchEvent: - if (touchHandler.GetNewTouchInfo()) { + if (touchHandler.ProcessTouchInfo(touchPanel.GetTouchInfo())) { ReloadIdleTimer(); displayApp.PushMessage(Pinetime::Applications::Display::Messages::TouchEvent); } -- cgit v1.2.3-70-g09d2