Skip to content

Commit

Permalink
Compile with SDK 34 (Android 14)
Browse files Browse the repository at this point in the history
  • Loading branch information
UweTrottmann committed Oct 13, 2023
1 parent 1fa6d72 commit a569a50
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,10 @@ class SgPreferencesFragment : BasePreferencesFragment(),
super.onActivityResult(requestCode, resultCode, data)
}

override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences, key: String) {
override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences?, key: String?) {
if (key == null) {
return // Preferences were cleared, do nothing.
}
val pref: Preference? = findPreference(key)
if (pref != null) {
BackupManager(pref.context).dataChanged()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ class ShowsFragment : Fragment() {
}

private val onPreferenceChangeListener =
OnSharedPreferenceChangeListener { _: SharedPreferences?, key: String ->
OnSharedPreferenceChangeListener { _: SharedPreferences?, key: String? ->
if (key == AdvancedSettings.KEY_UPCOMING_LIMIT) {
updateShowsQuery()
// refresh all list widgets
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ plugins {
}

buildscript {
val sgCompileSdk by extra(33) // Android 13 (T)
val sgCompileSdk by extra(34) // Android 14 (U)
val sgMinSdk by extra(21) // Android 5 (L)
val sgTargetSdk by extra(33) // Android 13 (T)

Expand Down

0 comments on commit a569a50

Please sign in to comment.