2
0
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:
mcarare 2023-08-30 21:28:09 +03:00 committed by mergify[bot]
parent a184fd480a
commit c839193789

View File

@ -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