From c6d5e841a0574198a530d4d400ec9dc7adf36034 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Sun, 29 Nov 2020 09:03:30 +0000 Subject: [PATCH] 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 --- wasp/apps/pager.py | 4 ++++ 1 file changed, 4 insertions(+) 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