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:
parent
bcf616f7bc
commit
c6d5e841a0
1 changed files with 4 additions and 0 deletions
|
@ -94,6 +94,10 @@ class NotificationApp(PagerApp):
|
||||||
wasp.system.request_event(wasp.EventMask.TOUCH)
|
wasp.system.request_event(wasp.EventMask.TOUCH)
|
||||||
super().foreground()
|
super().foreground()
|
||||||
|
|
||||||
|
def background(self):
|
||||||
|
self.confirmation_view.active = False
|
||||||
|
super().background()
|
||||||
|
|
||||||
def swipe(self, event):
|
def swipe(self, event):
|
||||||
if event[0] == wasp.EventType.DOWN:
|
if event[0] == wasp.EventType.DOWN:
|
||||||
self.confirmation_view.active = True
|
self.confirmation_view.active = True
|
||||||
|
|
Loading…
Reference in a new issue