Skip to content

Commit

Permalink
Merge pull request #377 from PatrykMis/comp/api-34
Browse files Browse the repository at this point in the history
Fixes to compile under SDK 34
  • Loading branch information
chenxiaolong authored Jul 10, 2023
2 parents 3e60d1d + 3d93fe7 commit 197c2ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/chiller3/bcr/RecorderTileService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class RecorderTileService : TileService(), SharedPreferences.OnSharedPreferenceC
refreshTileState()
}

override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences, key: String) {
override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences, key: String?) {
refreshTileState()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,9 @@ class SettingsFragment : PreferenceFragmentCompat(), Preference.OnPreferenceChan
return false
}

override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences, key: String) {
override fun onSharedPreferenceChanged(sharedPreferences: SharedPreferences, key: String?) {
when {
key == null -> return
// Update the switch state if it was toggled outside of the preference (eg. from the
// quick settings toggle)
key == prefCallRecording.key -> {
Expand Down

0 comments on commit 197c2ea

Please sign in to comment.