add asking for Exact alarm permission before scheduling a message above Android API S

This commit is contained in:
Wilson 2023-07-15 18:13:16 -04:00
parent 53aa4495a0
commit f6b5bbf455
3 changed files with 36 additions and 6 deletions

View file

@ -251,7 +251,10 @@ class MainActivity : SimpleActivity() {
handlePermission(PERMISSION_READ_CONTACTS) {
handleNotificationPermission { granted ->
if (!granted) {
PermissionRequiredDialog(this, R.string.allow_notifications_incoming_messages)
PermissionRequiredDialog(
activity = this,
textId = R.string.allow_notifications_incoming_messages,
positiveActionCallback = { openNotificationSettings() })
}
}