Bug 1850796 - Handle preference icon nullability.

Preference getIcon method can now return a null Drawable.
fenix/119.0
mcarare 10 months ago committed by mergify[bot]
parent a184fd480a
commit c839193789

@ -142,8 +142,10 @@ class AccountSettingsFragment : PreferenceFragmentCompat() {
preferenceSyncNow.apply {
onPreferenceClickListener = getClickListenerForSyncNow()
icon = icon.mutate().apply {
setTint(context.getColorFromAttr(R.attr.textPrimary))
icon?.let {
icon = it.mutate().apply {
setTint(context.getColorFromAttr(R.attr.textPrimary))
}
}
// Current sync state

Loading…
Cancel
Save