Fetch app dir for android only

This commit is contained in:
Mark Qvist 2022-10-03 14:30:08 +02:00
parent 69aa87e939
commit 9df412fb4f
1 changed files with 2 additions and 1 deletions

View File

@ -73,11 +73,12 @@ class SidebandApp(MDApp):
self.title = "Sideband"
self.app_state = SidebandApp.STARTING
self.android_service = None
self.app_dir = plyer.storagepath.get_application_dir()
if RNS.vendor.platformutils.get_platform() == "android":
self.app_dir = plyer.storagepath.get_application_dir()
self.sideband = SidebandCore(self, is_client=True, android_app_dir=self.app_dir)
else:
self.app_dir = None
self.sideband = SidebandCore(self, is_client=False)
self.update_ui_theme()