mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user