summaryrefslogtreecommitdiff
path: root/wasp/apps
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-11-29 09:03:30 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-11-29 09:12:14 (GMT)
commitc6d5e841a0574198a530d4d400ec9dc7adf36034 (patch)
tree012d89adebff81e8a02b930962e90e365b29b52b /wasp/apps
parentbcf616f7bc6dda3cb2bb2b92296b06cbdfbd7999 (diff)
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>
Diffstat (limited to 'wasp/apps')
-rw-r--r--wasp/apps/pager.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/wasp/apps/pager.py b/wasp/apps/pager.py
index 15b0bab..f9de947 100644
--- a/wasp/apps/pager.py
+++ b/wasp/apps/pager.py
@@ -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