mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
android: 5.2.2, build 142 (revert to API 32)
This commit is contained in:
committed by
Evgeny Poberezkin
parent
5a5876c258
commit
f17889b3e3
+2
-1
@@ -58,7 +58,8 @@ fun SetNotificationsMode(m: ChatModel) {
|
||||
|
||||
@Composable
|
||||
fun SetNotificationsModeAdditions() {
|
||||
if (Build.VERSION.SDK_INT >= 33) {
|
||||
// When target and compile SDK are different
|
||||
if (Build.VERSION.SDK_INT >= 33 && SimplexApp.context.applicationInfo.targetSdkVersion >= 33) {
|
||||
val notificationsPermissionState = rememberPermissionState(Manifest.permission.POST_NOTIFICATIONS)
|
||||
LaunchedEffect(notificationsPermissionState.hasPermission) {
|
||||
if (notificationsPermissionState.hasPermission) {
|
||||
|
||||
Reference in New Issue
Block a user