diff --git a/mobile/android/base/LightweightTheme.java b/mobile/android/base/LightweightTheme.java index 03a24d108663..18bc1032446e 100644 --- a/mobile/android/base/LightweightTheme.java +++ b/mobile/android/base/LightweightTheme.java @@ -170,7 +170,7 @@ public class LightweightTheme implements GeckoEventListener { // The bitmap image might be smaller than the device's width. // If it's smaller, fill the extra space on the left with the dominant color. if (bitmapWidth >= maxWidth) { - mBitmap = bitmap; + mBitmap = Bitmap.createBitmap(bitmap, bitmapWidth - maxWidth, 0, maxWidth, bitmapHeight); } else { Paint paint = new Paint(); paint.setAntiAlias(true);