Optimise timings

This commit is contained in:
Mark Qvist 2023-10-22 21:04:28 +02:00
parent 876aff9c69
commit 174b021a70
1 changed files with 7 additions and 5 deletions

View File

@ -1,4 +1,4 @@
__debug_build__ = True __debug_build__ = False
__disable_shaders__ = False __disable_shaders__ = False
__version__ = "0.6.3" __version__ = "0.6.3"
__variant__ = "beta" __variant__ = "beta"
@ -176,9 +176,11 @@ class SidebandApp(MDApp):
self.set_bars_colors() self.set_bars_colors()
def sjob(dt):
self.sideband.setstate("app.loaded", True) self.sideband.setstate("app.loaded", True)
self.sideband.setstate("app.running", True) self.sideband.setstate("app.running", True)
self.sideband.setstate("app.foreground", True) self.sideband.setstate("app.foreground", True)
Clock.schedule_once(sjob, 6.5)
def start_service(self): def start_service(self):
if RNS.vendor.platformutils.is_android(): if RNS.vendor.platformutils.is_android():
@ -697,7 +699,7 @@ class SidebandApp(MDApp):
self.root.ids.screen_manager.app = self self.root.ids.screen_manager.app = self
self.root.ids.app_version_info.text = "Sideband v"+__version__+" "+__variant__ self.root.ids.app_version_info.text = "Sideband v"+__version__+" "+__variant__
self.root.ids.nav_scrollview.effect_cls = ScrollEffect self.root.ids.nav_scrollview.effect_cls = ScrollEffect
Clock.schedule_once(self.start_core, 3.5) Clock.schedule_once(self.start_core, 0.25)
# Part of the focus hack fix # Part of the focus hack fix
def android_focus_fix(self, sender, val): def android_focus_fix(self, sender, val):