Chaning shadow algorithm to reuse bitmap instead of creating

a new bitmap on every tap

Bug: 27239742
Change-Id: I8e4259b79b1048e5fa82e7a1c8934ec7c52995be
This commit is contained in:
Sunny Goyal
2016-02-22 16:10:44 -08:00
parent 6646016ff5
commit 6c651132fb
2 changed files with 36 additions and 16 deletions

View File

@@ -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) {