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