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:
parent
167173e9ba
commit
bcf616f7bc
1 changed files with 3 additions and 2 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Reference in a new issue