diff --git a/mobile/android/base/widget/FaviconView.java b/mobile/android/base/widget/FaviconView.java index 87e78cbe045..a8ce697f999 100644 --- a/mobile/android/base/widget/FaviconView.java +++ b/mobile/android/base/widget/FaviconView.java @@ -64,7 +64,7 @@ public class FaviconView extends ImageView { private void formatImage() { // If we're called before bitmap is set, or before size is set, show blank. if (mIconBitmap == null || mActualWidth == 0 || mActualHeight == 0) { - clearImage(); + showNoImage(); return; } @@ -157,12 +157,16 @@ public class FaviconView extends ImageView { hideBackground(); } + private void showNoImage() { + setImageBitmap(null); + hideBackground(); + } + /** * Clear image and background shown by this view. */ public void clearImage() { - setImageResource(0); - hideBackground(); + showNoImage(); mUnscaledBitmap = null; mIconBitmap = null; mIconKey = null;