mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Fixing Intrinsic dimensions of FastBitmapDrawable
> This was changed initially to allow overriding icon size in case of PreloadIconDrawable. But the implementation of PreloadIconDrawable has changed since then and this hack is no longer required. issue: 15545872 Change-Id: I192056179837f05c5be9e24c3e1251cf7e2a7c8c
This commit is contained in:
@@ -113,12 +113,12 @@ class FastBitmapDrawable extends Drawable {
|
||||
|
||||
@Override
|
||||
public int getIntrinsicWidth() {
|
||||
return getBounds().width();
|
||||
return mBitmap.getWidth();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIntrinsicHeight() {
|
||||
return getBounds().height();
|
||||
return mBitmap.getHeight();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user