Files
Flexera-Launcher/src
caizhixingandcaizhixing 2b719d5134 fix(notification): NPE when the listener disconnects before connecting (#7483)
mSettingsCache is only assigned in onListenerConnected(), but
onListenerDisconnected() unregisters from it unconditionally. The framework
calls onListenerDisconnected() from NotificationListenerService.onDestroy(),
so a service that is destroyed before it ever connects dereferences null and
kills the process.

Guard the unregister; the connected path is unchanged.

Co-authored-by: caizhixing <17589399+caizhixing03@user.noreply.gitee.com>
2026-11-06 14:11:10 +08:00
..