2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-05 21:20:45 +00:00

Bug 1850796 - Handle onPreferenceChangeListener signature updates.

PreferenceFragmentCompat.onPreferenceChangeListener now returns a Nullable OnPreferenceChangeListener.
This commit is contained in:
mcarare 2023-08-30 21:45:45 +03:00 committed by mergify[bot]
parent ac0b637903
commit b49fdb5004

View File

@ -34,7 +34,7 @@ abstract class LearnMoreSwitchPreference(context: Context, attrs: AttributeSet?)
switch.run {
isChecked = getSwitchValue()
setOnCheckedChangeListener { _, isChecked ->
onPreferenceChangeListener.onPreferenceChange(
onPreferenceChangeListener?.onPreferenceChange(
this@LearnMoreSwitchPreference,
isChecked,
)