From 2265e94882b456169cb5b0cfaa1be3a4492d5a80 Mon Sep 17 00:00:00 2001 From: Niko Diamadis Date: Sun, 12 Nov 2023 12:13:23 +0100 Subject: [PATCH] Update dependencies --- app/build.gradle | 6 +++--- .../kotlin/com/github/gotify/settings/SettingsActivity.kt | 3 ++- build.gradle | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 92cce15..be6412e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -68,13 +68,13 @@ dependencies { implementation project(':client') implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'androidx.core:core-splashscreen:1.0.1' - implementation 'com.google.android.material:material:1.9.0' + implementation 'com.google.android.material:material:1.10.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' implementation 'androidx.vectordrawable:vectordrawable:1.1.0' - implementation 'androidx.preference:preference-ktx:1.2.0' + implementation 'androidx.preference:preference-ktx:1.2.1' - implementation 'com.github.cyb3rko:QuickPermissions-Kotlin:1.1.2' + implementation 'com.github.cyb3rko:QuickPermissions-Kotlin:1.1.3' implementation 'com.squareup.picasso:picasso:2.71828' implementation 'io.noties.markwon:core:4.6.2' implementation 'io.noties.markwon:image-picasso:4.6.2' diff --git a/app/src/main/kotlin/com/github/gotify/settings/SettingsActivity.kt b/app/src/main/kotlin/com/github/gotify/settings/SettingsActivity.kt index 26c4516..bd57861 100644 --- a/app/src/main/kotlin/com/github/gotify/settings/SettingsActivity.kt +++ b/app/src/main/kotlin/com/github/gotify/settings/SettingsActivity.kt @@ -52,7 +52,8 @@ internal class SettingsActivity : AppCompatActivity(), OnSharedPreferenceChangeL return false } - override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences, key: String) { + override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences?, key: String?) { + if (sharedPreferences == null) return when (key) { getString(R.string.setting_key_theme) -> { ThemeHelper.setTheme( diff --git a/build.gradle b/build.gradle index d32a8c2..530a4b2 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:8.1.3' - classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.20' + classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.10' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files