diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2015-05-14 19:55:10 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2015-05-15 14:10:20 -0700 |
commit | 4fe5a37dda8eb1869f9328d94236eb2c23f8109c (patch) | |
tree | 3f337aef0295fd4eb2eb0e0874ce69381d325897 /src/com/android/launcher3/BubbleTextView.java | |
parent | a214a63bfe365a0e81bc3082d56896c6df24d0b4 (diff) | |
download | android_packages_apps_Trebuchet-4fe5a37dda8eb1869f9328d94236eb2c23f8109c.tar.gz android_packages_apps_Trebuchet-4fe5a37dda8eb1869f9328d94236eb2c23f8109c.tar.bz2 android_packages_apps_Trebuchet-4fe5a37dda8eb1869f9328d94236eb2c23f8109c.zip |
Optimizing shadow generation by reusing bitmap.
> Not creating unnecessary bitmaps
> Final bitmap is generated as ALPHA_8 instead of ARGB_8888
> The shadow drawing is done directly in the view
Change-Id: I504fa2ea3abdc1a3c3fb9ad57d6e28880d2584a1
Diffstat (limited to 'src/com/android/launcher3/BubbleTextView.java')
-rw-r--r-- | src/com/android/launcher3/BubbleTextView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java index bbcd893f2..5dc3b1239 100644 --- a/src/com/android/launcher3/BubbleTextView.java +++ b/src/com/android/launcher3/BubbleTextView.java @@ -276,7 +276,7 @@ public class BubbleTextView extends TextView { // Only show the shadow effect when persistent pressed state is set. if (getParent() instanceof ShortcutAndWidgetContainer) { CellLayout layout = (CellLayout) getParent().getParent(); - layout.setPressedIcon(this, mPressedBackground, mOutlineHelper.shadowBitmapPadding); + layout.setPressedIcon(this, mPressedBackground); } updateIconState(); |