From 89d4515cd4e0ac70b7f13a1114767220b938e7f2 Mon Sep 17 00:00:00 2001 From: RenovateBot Date: Mon, 7 Mar 2022 08:32:52 +0000 Subject: [PATCH] Update dependency androidx.preference:preference-ktx to v1.2.0 --- app/build.gradle.kts | 2 +- .../java/audio/funkwhale/ffa/activities/SettingsActivity.kt | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index e56e896..0619608 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -161,7 +161,7 @@ dependencies { implementation("androidx.core:core-ktx:1.7.0") implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.4.1") implementation("androidx.coordinatorlayout:coordinatorlayout:1.2.0") - implementation("androidx.preference:preference-ktx:1.1.1") + implementation("androidx.preference:preference-ktx:1.2.0") implementation("androidx.recyclerview:recyclerview:1.2.1") implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0") implementation("com.google.android.material:material:1.5.0") diff --git a/app/src/main/java/audio/funkwhale/ffa/activities/SettingsActivity.kt b/app/src/main/java/audio/funkwhale/ffa/activities/SettingsActivity.kt index 38886ec..4b0d072 100644 --- a/app/src/main/java/audio/funkwhale/ffa/activities/SettingsActivity.kt +++ b/app/src/main/java/audio/funkwhale/ffa/activities/SettingsActivity.kt @@ -41,7 +41,6 @@ class SettingsActivity : AppCompatActivity() { .commit() } - fun getThemeResId(): Int = R.style.AppTheme } class SettingsFragment : @@ -51,7 +50,7 @@ class SettingsFragment : override fun onResume() { super.onResume() - preferenceScreen.sharedPreferences.registerOnSharedPreferenceChangeListener(this) + preferenceScreen.sharedPreferences?.registerOnSharedPreferenceChangeListener(this) } override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) { @@ -60,7 +59,7 @@ class SettingsFragment : updateValues() } - override fun onPreferenceTreeClick(preference: Preference?): Boolean { + override fun onPreferenceTreeClick(preference: Preference): Boolean { when (preference?.key) { "oss_licences" -> startActivity(Intent(activity, LicencesActivity::class.java))