Bug 697070 - Use default favicon on tab if no image is available (r=sriram)

This commit is contained in:
Lucas Rocha 2011-10-31 10:45:20 +00:00
parent 6f58c6a107
commit f6ac877371

View File

@ -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());