diff options
| author | Riku Isokoski <riksu9000@gmail.com> | 2023-02-23 13:35:29 +0200 |
|---|---|---|
| committer | Riku Isokoski <riksu9000@gmail.com> | 2023-02-24 00:05:21 +0200 |
| commit | 1516b082fd75a1c68d98862199bd349175d37a8f (patch) | |
| tree | 3d550e490aed8b73075cb13cb7bd6055480a0a1e /src/systemtask/SystemTask.cpp | |
| parent | 7066ff5aba3d2643a35ba98379ff24143da99c3c (diff) | |
TouchHandler: Do not store touch panel reference
Diffstat (limited to 'src/systemtask/SystemTask.cpp')
| -rw-r--r-- | src/systemtask/SystemTask.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |
