mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
The ultimate goal is for toast widgets (i.e., Notification when flagged as such) to: * Not stop event propagation * Close themselves when the event was emitted by user input. Instead of doing event filtering in UIManager, we simply overload the onGesture & onKey* handlers in Notification to do just that, and just make sure UIManager will *send* those events to toasts, but without affecting the usual semantics of top widget selection and event propagation (which is as simple as just calling handleEvent on them unchecked ;p). Thanks to @poire-z for the brainstorming in https://github.com/koreader/koreader/issues/9594 ;). This also happens to fix a bug in which we might have looped on the top widget twice, because of an array vs. hash mishap ;).