From c424f2290e96cea419f95c5ccb730a4946824c1b Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Fri, 5 Sep 2014 07:04:59 -0700 Subject: [PATCH] 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 --- src/com/android/launcher3/FastBitmapDrawable.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/launcher3/FastBitmapDrawable.java b/src/com/android/launcher3/FastBitmapDrawable.java index 7c9e77eef5..ff02bbbc33 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