mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 697070 - Use default favicon on tab if no image is available (r=sriram)
This commit is contained in:
parent
6f58c6a107
commit
f6ac877371
@ -1703,7 +1703,12 @@ abstract public class GeckoApp
|
||||
});
|
||||
|
||||
ImageView favicon = (ImageView) convertView.findViewById(R.id.favicon);
|
||||
favicon.setImageDrawable(tab.getFavicon());
|
||||
|
||||
Drawable faviconImage = tab.getFavicon();
|
||||
if (faviconImage != null)
|
||||
favicon.setImageDrawable(faviconImage);
|
||||
else
|
||||
favicon.setImageResource(R.drawable.favicon);
|
||||
|
||||
TextView title = (TextView) convertView.findViewById(R.id.title);
|
||||
title.setText(tab.getTitle());
|
||||
|
Loading…
Reference in New Issue
Block a user