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:
parent
ac0b637903
commit
b49fdb5004
@ -34,7 +34,7 @@ abstract class LearnMoreSwitchPreference(context: Context, attrs: AttributeSet?)
|
||||
switch.run {
|
||||
isChecked = getSwitchValue()
|
||||
setOnCheckedChangeListener { _, isChecked ->
|
||||
onPreferenceChangeListener.onPreferenceChange(
|
||||
onPreferenceChangeListener?.onPreferenceChange(
|
||||
this@LearnMoreSwitchPreference,
|
||||
isChecked,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user