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
2022-10-02 21:58:04 +03:00
committed by JF
parent 3617569795
commit 5ef3c0d3be
4 changed files with 104 additions and 54 deletions

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;
}