2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +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 { switch.run {
isChecked = getSwitchValue() isChecked = getSwitchValue()
setOnCheckedChangeListener { _, isChecked -> setOnCheckedChangeListener { _, isChecked ->
onPreferenceChangeListener.onPreferenceChange( onPreferenceChangeListener?.onPreferenceChange(
this@LearnMoreSwitchPreference, this@LearnMoreSwitchPreference,
isChecked, isChecked,
) )