Files
Magisk/app
topjohnwu 5f184cb45e app: request notification permission for updates
Turning on "Check for updates" didn't request the notification
permission, so on Android 13+ the update notifications could never be
shown. Instead, every creation of MainActivity, including rotations,
requested the permission when the setting was on, and turned the
setting off if it was denied, while the settings switch still showed it
as on.

Request the permission when the setting is turned on, and only enable
it when granted. Only request it on startup when the activity is first
created, and refresh the switch from the setting when the settings tab
resumes.

Assisted-by: Claude Opus 5.5
2026-10-24 13:01:45 -07:00
..
2026-10-24 13:01:45 -07:00
2025-06-16 02:17:29 -07:00
2025-06-16 02:17:29 -07:00