mirror of
https://github.com/liberatedsystems/Sideband_CE.git
synced 2024-09-03 04:13:27 +02:00
Improved screen switching perfomance
This commit is contained in:
parent
98a6ca706c
commit
f6edbb6bb6
@ -253,8 +253,9 @@ class SidebandApp(MDApp):
|
|||||||
self.sideband.should_persist_data()
|
self.sideband.should_persist_data()
|
||||||
if self.conversations_view != None:
|
if self.conversations_view != None:
|
||||||
self.root.ids.conversations_scrollview.effect_cls = ScrollEffect
|
self.root.ids.conversations_scrollview.effect_cls = ScrollEffect
|
||||||
# TODO: Check if we actually need this
|
# TODO: Check if we actually need this now that the bouncy
|
||||||
self.sideband.setstate("wants.viewupdate.conversations", True)
|
# scrolling bug has been eliminated
|
||||||
|
# self.sideband.setstate("wants.viewupdate.conversations", True)
|
||||||
self.root.ids.conversations_scrollview.scroll = 1
|
self.root.ids.conversations_scrollview.scroll = 1
|
||||||
|
|
||||||
RNS.log("App paused", RNS.LOG_DEBUG)
|
RNS.log("App paused", RNS.LOG_DEBUG)
|
||||||
@ -268,7 +269,8 @@ class SidebandApp(MDApp):
|
|||||||
self.app_state = SidebandApp.ACTIVE
|
self.app_state = SidebandApp.ACTIVE
|
||||||
if self.conversations_view != None:
|
if self.conversations_view != None:
|
||||||
self.root.ids.conversations_scrollview.effect_cls = ScrollEffect
|
self.root.ids.conversations_scrollview.effect_cls = ScrollEffect
|
||||||
# TODO: Check if we actually need this
|
# TODO: Check if we actually need this now that the bouncy
|
||||||
|
# scrolling bug has been eliminated
|
||||||
# self.sideband.setstate("wants.viewupdate.conversations", True)
|
# self.sideband.setstate("wants.viewupdate.conversations", True)
|
||||||
self.root.ids.conversations_scrollview.scroll = 1
|
self.root.ids.conversations_scrollview.scroll = 1
|
||||||
|
|
||||||
@ -679,8 +681,11 @@ class SidebandApp(MDApp):
|
|||||||
|
|
||||||
self.root.ids.screen_manager.current = "conversations_screen"
|
self.root.ids.screen_manager.current = "conversations_screen"
|
||||||
self.root.ids.messages_scrollview.active_conversation = None
|
self.root.ids.messages_scrollview.active_conversation = None
|
||||||
|
|
||||||
|
def cb(dt):
|
||||||
self.sideband.setstate("app.displaying", self.root.ids.screen_manager.current)
|
self.sideband.setstate("app.displaying", self.root.ids.screen_manager.current)
|
||||||
self.sideband.setstate("wants.clear_notifications", True)
|
self.sideband.setstate("wants.clear_notifications", True)
|
||||||
|
Clock.schedule_once(cb, 0.10)
|
||||||
|
|
||||||
def connectivity_status(self, sender):
|
def connectivity_status(self, sender):
|
||||||
hs = dp(22)
|
hs = dp(22)
|
||||||
|
Loading…
Reference in New Issue
Block a user