Implement a return app stack

Each opened app (screen) is pushed on a stack, which is then popped from
when returning instead of hard coded "previous apps". Return swipe and
refresh directions are automatically determined from the app transition.
This commit is contained in:
Riku Isokoski authored and JF committed 2023-01-05 15:13:05 +01:00
1 parent 3617569795
commit 5ef3c0d3be
4 files changed
+104 -54

No files matched your search

+1 -2
View File
@@ -146,7 +146,6 @@ void Metronome::OnEvent(lv_obj_t* obj, lv_event_t event) {
bool Metronome::OnTouchEvent(TouchEvents event) {
if (event == TouchEvents::SwipeDown && allowExit) {
running = false;
return true;
}
return false;
return true;
}