зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1066320 - Crop lightweight theme image if it's larger than the displayable area; r=mfinkle
This commit is contained in:
Родитель
b624d936aa
Коммит
a35f1d66c1
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче