1
0
Fork 0

apps: pager: notifications: fix handling of touch messages

Currently there are detailed hit boxes in the confirmation view widget
but any inaccurate hit is treated as No anyway by the notification app.
Additionally selecting 'No' dismisses the whole notification app rather
than just the confirmation view.

Fix the event handling so that we ignore touches outside the hit box and
only dismiss the whole notification app if we actually clear the
notifications.

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

View file

@ -112,8 +112,9 @@ class NotificationApp(PagerApp):
is_confirmed = self.confirmation_view.touch(event)
if is_confirmed:
wasp.system.notifications = {}
wasp.system.navigate(wasp.EventType.BACK)
self.confirmation_view.active = False
wasp.system.navigate(wasp.EventType.BACK)
elif is_confirmed != None:
self._draw()
class CrashApp():