[AllApps] NORMAL <-> ALL_APPS motion clean fixes for AOSP

- Avoids drawing on scrim when headerProtection is not enabled.
- Defines a default staggered animation for all apps scrim and content per S design guidelines

[preview attached to bug]

Bug: 191259805
Test: visual
Change-Id: I0d625c9f0caba158ff58f12a39b4f18aedead84b
This commit is contained in:
Samuel Fufa committed 2021-09-10 18:30:33 -07:00
1 parent 9874b5d68b
commit 776443b337
3 files changed
+35 -8

No files matched your search

@@ -711,6 +711,7 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo
@Override
public void drawOnScrim(Canvas canvas) {
if (!mHeader.isHeaderProtectionSupported()) return;
mHeaderPaint.setColor(mHeaderColor);
mHeaderPaint.setAlpha((int) (getAlpha() * Color.alpha(mHeaderColor)));
if (mHeaderPaint.getColor() != mScrimColor && mHeaderPaint.getColor() != 0) {