mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 19:38:21 +00:00
Merging ScrimView into GradientView
Less banding, less drawing for All Apps Transition. Bug: 63873246 Change-Id: I6c7c856e2939a10db7e44b266c1d6d51334fd152
This commit is contained in:
@@ -276,7 +276,9 @@ public class WidgetsBottomSheet extends AbstractFloatingView implements Insettab
|
||||
public void setTranslationY(float translationY) {
|
||||
super.setTranslationY(translationY);
|
||||
if (mGradientBackground == null) return;
|
||||
mGradientBackground.setProgress((mTranslationYClosed - translationY) / mTranslationYRange);
|
||||
float p = (mTranslationYClosed - translationY) / mTranslationYRange;
|
||||
boolean showScrim = p <= 0;
|
||||
mGradientBackground.setProgress(p, showScrim);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user