2f6a24344c49
fix: surface update-notification opt-in so it actually gets granted (v2.9.25)
- time
- 2026-08-01 21:30 UTC · 2 months ago
- machine
- koh2
- parent
- 0c23ea982690
↓ peach-android-2f6a2434.tar.gzatlas at this save
files changed2 files
VERSION+1 −1app/src/main/java/com/peachpasswords/ui/updates/UpdateScreen.kt+7 −1app/src/main/java/com/peachpasswords/ui/updates/UpdateScreen.kt+7 −1
@@ -235,6 +235,12 @@235235 style = PeachType.labelMono,236236 )237237 238+ // Android 13+ won't post the "update available" notification without an239+ // explicit grant, so ask here — at the top, next to the version info that240+ // explains why — instead of burying it below the install button where the241+ // user installs and leaves without ever seeing it.242+ NotificationOptIn()243+238244 state.error?.let { message ->239245 Spacer(Modifier.height(PeachSpacing.md))240246 Box(@@ -288,7 +294,6 @@288294 }289295 290296 Spacer(Modifier.height(PeachSpacing.xl))291- NotificationOptIn()292297 Spacer(Modifier.height(PeachSpacing.xxl))293298 }294299 }@@ -314,6 +319,7 @@314319 val launcher = rememberLauncherForActivityResult(ActivityResultContracts.RequestPermission()) {315320 granted = it316321 }322+ Spacer(Modifier.height(PeachSpacing.lg))317323 SectionLabel("NOTIFICATIONS")318324 Text(319325 "Peach can tell you when a new version is out. Nothing else uses this.",