subsurface/mobile-widgets
Dirk Hohndel 085b5ff0db mobile: improve Android back key behavior
There are two places where we try to prevemt unintended app exits.
Once, in the onBackRequested signal handler on the dive list. This was
missing special handling for the situation where one of the drawers was
open.
The second place is the onClosing signal handler in main.qml. Naively I
thought that this was enough to catch all cases where we were about to
exit the app, but apparently an explicit manager.quit() is a bit too
forceful and doesn't get to that signal handler.

With this commit we check for open drawers in both places. Belts and
suspenders, I guess.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2020-03-31 08:42:20 -07:00
..
qml mobile: improve Android back key behavior 2020-03-31 08:42:20 -07:00
CMakeLists.txt mobile-widgets: add themeInterface 2020-01-26 16:42:35 -08:00
qmlinterface.cpp mobile/summary: remove dive summary calculation 2020-02-08 10:29:36 -08:00
qmlinterface.h mobile/summary: remove dive summary calculation 2020-02-08 10:29:36 -08:00
qmlmanager.cpp mobile/dive-list: add indicator that dive list is being processed 2020-03-30 09:16:55 -07:00
qmlmanager.h cleanup: remove loadFromCloud() declaration from QMLManager.h 2020-03-31 04:18:34 -07:00
themeinterface.cpp cleanup: use setPointSizeF() in themeInterface::set_currentScale() 2020-03-30 13:58:10 -07:00
themeinterface.h cleanup: fold ThemeInterface::setup() into constructor 2020-03-30 13:54:12 -07:00