diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2016-02-22 16:10:44 -0800 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2016-02-26 09:15:06 -0800 |
commit | 6c651132fbdee2d95ef40d6b2255a07bd1c0c0f1 (patch) | |
tree | 98e3a2611261f3e90381039230e44a7d898c3b9b /src/com/android/launcher3/BubbleTextView.java | |
parent | 6646016ff5d3126ca508ed7d59e4c547e47609b3 (diff) | |
download | android_packages_apps_Trebuchet-6c651132fbdee2d95ef40d6b2255a07bd1c0c0f1.tar.gz android_packages_apps_Trebuchet-6c651132fbdee2d95ef40d6b2255a07bd1c0c0f1.tar.bz2 android_packages_apps_Trebuchet-6c651132fbdee2d95ef40d6b2255a07bd1c0c0f1.zip |
Chaning shadow algorithm to reuse bitmap instead of creating
a new bitmap on every tap
Bug: 27239742
Change-Id: I8e4259b79b1048e5fa82e7a1c8934ec7c52995be
Diffstat (limited to 'src/com/android/launcher3/BubbleTextView.java')
-rw-r--r-- | src/com/android/launcher3/BubbleTextView.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java index dddd826c4..5d0f78308 100644 --- a/src/com/android/launcher3/BubbleTextView.java +++ b/src/com/android/launcher3/BubbleTextView.java @@ -318,6 +318,7 @@ public class BubbleTextView extends TextView void setStayPressed(boolean stayPressed) { mStayPressed = stayPressed; if (!stayPressed) { + HolographicOutlineHelper.obtain(getContext()).recycleShadowBitmap(mPressedBackground); mPressedBackground = null; } else { if (mPressedBackground == null) { |