diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2014-09-05 07:04:59 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2014-09-05 07:07:09 -0700 |
commit | c424f2290e96cea419f95c5ccb730a4946824c1b (patch) | |
tree | 6aea691ed19678b71e43f09cc26b37614845ff6e /src/com/android/launcher3/FastBitmapDrawable.java | |
parent | 1c13ff569170bec075ab9961fbc0eb1ca395696b (diff) | |
download | android_packages_apps_Trebuchet-c424f2290e96cea419f95c5ccb730a4946824c1b.tar.gz android_packages_apps_Trebuchet-c424f2290e96cea419f95c5ccb730a4946824c1b.tar.bz2 android_packages_apps_Trebuchet-c424f2290e96cea419f95c5ccb730a4946824c1b.zip |
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
Diffstat (limited to 'src/com/android/launcher3/FastBitmapDrawable.java')
-rw-r--r-- | src/com/android/launcher3/FastBitmapDrawable.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/FastBitmapDrawable.java b/src/com/android/launcher3/FastBitmapDrawable.java index 7c9e77eef..ff02bbbc3 100644 --- a/src/com/android/launcher3/FastBitmapDrawable.java +++ b/src/com/android/launcher3/FastBitmapDrawable.java @@ -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 |