From 93035695a19c978dae1df4b1ebf4d72e6705f189 Mon Sep 17 00:00:00 2001 From: n00byara Date: Mon, 29 Apr 2024 17:11:36 +0300 Subject: [PATCH] Update Downgrade min version sdk to 30 (android 11). And fixed switcher update after getting permissions --- app/build.gradle.kts | 4 ++-- .../notificationcode/ui/viewmodels/SettingsScreenViewModel.kt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index a222fed..9c775f6 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -10,10 +10,10 @@ android { defaultConfig { applicationId = "ru.n00byara.notificationcode" - minSdk = 31 + minSdk = 30 targetSdk = 34 versionCode = 1 - versionName = "3.0.3" + versionName = "3.0.4" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { diff --git a/app/src/main/java/ru/n00byara/notificationcode/ui/viewmodels/SettingsScreenViewModel.kt b/app/src/main/java/ru/n00byara/notificationcode/ui/viewmodels/SettingsScreenViewModel.kt index 6e10bb6..b92d464 100644 --- a/app/src/main/java/ru/n00byara/notificationcode/ui/viewmodels/SettingsScreenViewModel.kt +++ b/app/src/main/java/ru/n00byara/notificationcode/ui/viewmodels/SettingsScreenViewModel.kt @@ -110,5 +110,6 @@ class SettingsScreenViewModel(private val application: Application) : this.settings.getInt(Constants.USE_CASE) == 0 && this.isRootedDevice this.permissionCardVisibilityUiState.value = this.settings.getInt(Constants.USE_CASE) == 1 && !permission.checkPermission() + this.permissionAccess.value = this.permission.checkPermission() } } \ No newline at end of file