Do not ask for permissions if not needed

This commit is contained in:
sim 2024-12-05 16:35:18 +01:00
parent 905d60a495
commit be5bba9cc3

View File

@ -18,6 +18,7 @@ import org.unifiedpush.distributor.nextpush.R
fun PermissionsUi(onDone: () -> Unit = {}) {
if (Build.VERSION.SDK_INT < 33) {
onDone()
return
}
val notificationsPermissionState =
rememberPermissionState(