diff options
| author | Jean-François Milants <jf@codingfield.com> | 2021-06-10 19:19:11 (GMT) |
|---|---|---|
| committer | Jean-François Milants <jf@codingfield.com> | 2021-06-10 19:19:11 (GMT) |
| commit | caca6a5cff0025df80241a09baab28e49720ddf8 (patch) | |
| tree | bd1ff044c25fc3c1b3ba85565ff5206ee7188626 /src/displayapp/DisplayApp.h | |
| parent | ff00873f974cb1400acf7721251167634e60107a (diff) | |
Fix stack corruption when exiting an app (the app was destroyed while it was executing the button handler).
Diffstat (limited to 'src/displayapp/DisplayApp.h')
| -rw-r--r-- | src/displayapp/DisplayApp.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/displayapp/DisplayApp.h b/src/displayapp/DisplayApp.h index 65abd41..73a7cc3 100644 --- a/src/displayapp/DisplayApp.h +++ b/src/displayapp/DisplayApp.h @@ -111,6 +111,9 @@ namespace Pinetime { void ReturnApp(Apps app, DisplayApp::FullRefreshDirections direction, TouchEvents touchEvent); void LoadApp(Apps app, DisplayApp::FullRefreshDirections direction); void PushMessageToSystemTask(Pinetime::System::Messages message); + + Apps nextApp = Apps::None; + DisplayApp::FullRefreshDirections nextDirection; }; } } |
