Invalidate scrim throughout animation from overlay to workspace.

Bug: 27135377
Change-Id: I19e947ac271063beaa6c5d11906631d0afcbb781
This commit is contained in:
Tony Wickham committed 2016-03-28 16:43:20 -07:00
1 parent 1ad3ef3e81
commit 3f6c0ee7f5
1 file changed
+11
@@ -697,6 +697,17 @@ public class LauncherStateTransitionAnimation {
itemsAlpha.setInterpolator(decelerateInterpolator);
animation.play(itemsAlpha);
// Invalidate the scrim throughout the animation to ensure the highlight
// cutout is correct throughout.
ValueAnimator invalidateScrim = ValueAnimator.ofFloat(0f, 1f);
invalidateScrim.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override
public void onAnimationUpdate(ValueAnimator animation) {
mLauncher.getDragLayer().invalidateScrim();
}
});
animation.play(invalidateScrim);
if (material) {
// Animate the all apps button
float finalRadius = pCb.getMaterialRevealViewStartFinalRadius();