commit | 6c651132fbdee2d95ef40d6b2255a07bd1c0c0f1 | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Mon Feb 22 16:10:44 2016 -0800 |
committer | Sunny Goyal <sunnygoyal@google.com> | Fri Feb 26 09:15:06 2016 -0800 |
tree | 98e3a2611261f3e90381039230e44a7d898c3b9b | |
parent | 6646016ff5d3126ca508ed7d59e4c547e47609b3 [diff] [blame] |
Chaning shadow algorithm to reuse bitmap instead of creating a new bitmap on every tap Bug: 27239742 Change-Id: I8e4259b79b1048e5fa82e7a1c8934ec7c52995be
diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java index dddd826..5d0f783 100644 --- a/src/com/android/launcher3/BubbleTextView.java +++ b/src/com/android/launcher3/BubbleTextView.java
@@ -318,6 +318,7 @@ void setStayPressed(boolean stayPressed) { mStayPressed = stayPressed; if (!stayPressed) { + HolographicOutlineHelper.obtain(getContext()).recycleShadowBitmap(mPressedBackground); mPressedBackground = null; } else { if (mPressedBackground == null) {