mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 19:38:52 +01:00
Request notification permission on Android 13
This commit is contained in:
@@ -28,10 +28,12 @@ interface PermissionManager {
|
||||
|
||||
fun hasContacts(): Boolean
|
||||
|
||||
fun hasNotifications(): Boolean
|
||||
|
||||
fun hasPhone(): Boolean
|
||||
|
||||
fun hasCalling(): Boolean
|
||||
|
||||
fun hasStorage(): Boolean
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,6 +84,7 @@ class Preferences @Inject constructor(
|
||||
val canUseSubId = rxPrefs.getBoolean("canUseSubId", true)
|
||||
val version = rxPrefs.getInteger("version", context.versionCode)
|
||||
val changelogVersion = rxPrefs.getInteger("changelogVersion", context.versionCode)
|
||||
val hasAskedForNotificationPermission = rxPrefs.getBoolean("hasAskedForNotificationPermission", false)
|
||||
@Deprecated("This should only be accessed when migrating to @blockingManager")
|
||||
val sia = rxPrefs.getBoolean("sia", false)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user