mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-25 23:00:36 +01:00
Improved exit behaviour on Android. Closes #8.
This commit is contained in:
parent
21b35eb606
commit
b432646c30
@ -475,6 +475,11 @@ class SidebandApp(MDApp):
|
|||||||
time.sleep(0.2)
|
time.sleep(0.2)
|
||||||
RNS.log("Service stopped")
|
RNS.log("Service stopped")
|
||||||
|
|
||||||
|
if RNS.vendor.platformutils.is_android():
|
||||||
|
RNS.log("Finishing activity")
|
||||||
|
activity = autoclass('org.kivy.android.PythonActivity').mActivity
|
||||||
|
activity.finishAndRemoveTask()
|
||||||
|
else:
|
||||||
RNS.exit()
|
RNS.exit()
|
||||||
MDApp.get_running_app().stop()
|
MDApp.get_running_app().stop()
|
||||||
Window.close()
|
Window.close()
|
||||||
@ -712,6 +717,7 @@ class SidebandApp(MDApp):
|
|||||||
yes_button = MDRectangleFlatButton(text="OK",font_size=dp(18))
|
yes_button = MDRectangleFlatButton(text="OK",font_size=dp(18))
|
||||||
|
|
||||||
dialog = MDDialog(
|
dialog = MDDialog(
|
||||||
|
title="Can't Sync",
|
||||||
text="No active LXMF propagation nodes were found. Cannot fetch messages. Wait for a Propagation Node to announce on the network, or manually specify one in the settings.",
|
text="No active LXMF propagation nodes were found. Cannot fetch messages. Wait for a Propagation Node to announce on the network, or manually specify one in the settings.",
|
||||||
buttons=[ yes_button ],
|
buttons=[ yes_button ],
|
||||||
# elevation=0,
|
# elevation=0,
|
||||||
|
Loading…
Reference in New Issue
Block a user