apps: pager: notifications: dismiss confirmation view on app exit

Currently the confirmation view remains active when we switch away from
the notification view. Ensure we dismiss when we background the
application.

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
This commit is contained in:
Daniel Thompson 2020-11-29 09:03:30 +00:00
parent bcf616f7bc
commit c6d5e841a0

View file

@ -94,6 +94,10 @@ class NotificationApp(PagerApp):
wasp.system.request_event(wasp.EventMask.TOUCH)
super().foreground()
def background(self):
self.confirmation_view.active = False
super().background()
def swipe(self, event):
if event[0] == wasp.EventType.DOWN:
self.confirmation_view.active = True