mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-22 13:30:36 +01:00
Improved lifecycle management on Android
This commit is contained in:
parent
1b8bb58683
commit
23a2a95784
@ -253,11 +253,16 @@ class SidebandApp(MDApp):
|
|||||||
w.height, w.size_hint_y, w.opacity, w.disabled = 0, None, 0, True
|
w.height, w.size_hint_y, w.opacity, w.disabled = 0, None, 0, True
|
||||||
|
|
||||||
def quit_action(self, sender):
|
def quit_action(self, sender):
|
||||||
|
self.root.ids.nav_drawer.set_state("closed")
|
||||||
|
self.sideband.should_persist_data()
|
||||||
|
|
||||||
|
def final_exit(dt):
|
||||||
RNS.exit()
|
RNS.exit()
|
||||||
RNS.log("RNS shutdown complete")
|
|
||||||
MDApp.get_running_app().stop()
|
MDApp.get_running_app().stop()
|
||||||
Window.close()
|
Window.close()
|
||||||
|
|
||||||
|
Clock.schedule_once(final_exit, 0.5)
|
||||||
|
|
||||||
def announce_now_action(self, sender=None):
|
def announce_now_action(self, sender=None):
|
||||||
self.sideband.lxmf_announce()
|
self.sideband.lxmf_announce()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user