mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
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
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user