mirror of
https://github.com/Febbweiss/mopidy-touchscreen.git
synced 2026-03-05 06:35:43 +00:00
Animation
This commit is contained in:
@@ -38,11 +38,17 @@ class LibraryScreen(BaseScreen):
|
||||
self.browse_uri(directory)
|
||||
|
||||
def should_update(self):
|
||||
return self.list_view.should_update()
|
||||
if self.list_view.should_update():
|
||||
return BaseScreen.update_partial
|
||||
else:
|
||||
return BaseScreen.no_update
|
||||
|
||||
def update(self, screen, update_type, rects):
|
||||
def set_update_rects(self, rects):
|
||||
self.list_view.set_update_rects(rects)
|
||||
|
||||
def update(self, screen, update_type):
|
||||
update_all = (update_type == BaseScreen.update_all)
|
||||
self.list_view.render(screen, update_all, rects)
|
||||
self.list_view.render(screen, update_all)
|
||||
|
||||
def touch_event(self, touch_event):
|
||||
clicked = self.list_view.touch_event(touch_event)
|
||||
|
||||
Reference in New Issue
Block a user