Repository navigation
fix(notifications): rebind the listener after a disconnect - #55
A-nony-mous wants to merge 1 commit into
Conversation
Android can drop a NotificationListenerService binding without warning and does not restore it on its own. onListenerDisconnected only cleared activeService, so later reads took the null branch and answered "[]" without logging: the app showed an empty list while the phone had dozens of notifications posted. Ask for the binding back with requestRebind, backing off 1s -> 32s, since a refused rebind re-enters onListenerDisconnected. Also log the null-service read.
cc3053c to
c2d4632
Compare
|
Opus 5.5 PR review. I'll probably have time to look more closely and iterate over the weekend:
|
Android can drop a NotificationListenerService binding without warning, and does
not restore it on its own. The app never asked for it back, so it kept answering
"no notifications" while the phone had dozens posted.
Rebind after a disconnect (backing off 1s → 32s) and log the silent path.
Reproduce while the app runs:
The Notifications app then shows the empty state; before this change it stays
that way for the life of the process.
Verified by build and install on a OnePlus 13, CPH2655.