mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-05 21:20:45 +00:00
Bug 1850796 - Handle preference icon nullability.
Preference getIcon method can now return a null Drawable.
This commit is contained in:
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…
Reference in New Issue
Block a user