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:
parent
ac0b637903
commit
b49fdb5004
@ -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,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user