Bug 1158282 - Correct showDefaultFavicon comment. r=me

I thought the dominant color box was always used, but it is only used when it
is enabled in XML attrs.
This commit is contained in:
Michael Comella 2015-05-22 11:35:45 -07:00
parent f6077389d6
commit 9a4a0c57d1

View File

@ -218,9 +218,8 @@ public class FaviconView extends ImageView {
public void showDefaultFavicon() {
// We handle the default favicon as any other favicon to avoid the complications of special
// casing it. This means that if we provide assets that require the default favicon to be
// scaled up to fit in the container, a box with the dominant color will be used. We can
// deal with that later if it becomes relevant.
// casing it. This means that the icon can be scaled both up and down, and the dominant
// color box can used if it is enabled in XML attrs.
final Bitmap defaultFaviconBitmap = BitmapFactory.decodeResource(getResources(),
R.drawable.favicon_globe);
updateAndScaleImage(defaultFaviconBitmap, DEFAULT_FAVICON_KEY);