2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +00:00

[fenix] Fix crash from TabThumbnailView where drawable is null (https://github.com/mozilla-mobile/fenix/pull/11121)

This commit is contained in:
Gabriel Luong 2020-06-01 16:08:35 -04:00 committed by GitHub
parent 659dcd1a08
commit ed7a7b66fc

View File

@ -72,6 +72,7 @@ class TabTrayViewHolder(
thumbnailView.visibility = View.VISIBLE
iconView?.visibility = View.INVISIBLE
} else {
thumbnailView.setImageBitmap(null)
iconView?.setImageBitmap(tab.icon)
thumbnailView.visibility = View.INVISIBLE
iconView?.visibility = View.VISIBLE