Merging ScrimView into GradientView
Less banding, less drawing for All Apps Transition. Bug: 63873246 Change-Id: I6c7c856e2939a10db7e44b266c1d6d51334fd152
This commit is contained in:
1 parent
8806475b8e
commit
254bd42729
14 files changed
+84
-207
No files matched your search
@@ -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