mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Using view elevation for shadow during click feedback instead of
creating a shadow bitmap Change-Id: I331186664c3c448596af3172e0e080921a6a1908
This commit is contained in:
@@ -157,14 +157,7 @@ public class AllAppsContainerView extends RelativeLayout implements DragSource,
|
||||
|
||||
@Override
|
||||
public void setPressedIcon(BubbleTextView icon, Bitmap background) {
|
||||
if (icon == null || background == null) {
|
||||
mTouchFeedbackView.setBitmap(null);
|
||||
mTouchFeedbackView.animate().cancel();
|
||||
} else if (mTouchFeedbackView.setBitmap(background)) {
|
||||
View rv = findViewById(R.id.apps_list_view);
|
||||
mTouchFeedbackView.alignWithIconView(icon, (ViewGroup) icon.getParent(), rv);
|
||||
mTouchFeedbackView.animateShadow();
|
||||
}
|
||||
mTouchFeedbackView.setPressedIcon(icon, background);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user