diff options
author | Tony Wickham <twickham@google.com> | 2016-03-28 16:43:20 -0700 |
---|---|---|
committer | Tony Wickham <twickham@google.com> | 2016-03-28 16:43:20 -0700 |
commit | 3f6c0ee7f5c75410dfe9e05f31fdb71b21ceecd3 (patch) | |
tree | b8f21f64e77cd7b03d082c8ba521cba9a4285890 /src/com/android | |
parent | 1ad3ef3e81688a92dcfe2b2d39631af6d50baf5c (diff) | |
download | android_packages_apps_Trebuchet-3f6c0ee7f5c75410dfe9e05f31fdb71b21ceecd3.tar.gz android_packages_apps_Trebuchet-3f6c0ee7f5c75410dfe9e05f31fdb71b21ceecd3.tar.bz2 android_packages_apps_Trebuchet-3f6c0ee7f5c75410dfe9e05f31fdb71b21ceecd3.zip |
Invalidate scrim throughout animation from overlay to workspace.
Bug: 27135377
Change-Id: I19e947ac271063beaa6c5d11906631d0afcbb781
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/launcher3/LauncherStateTransitionAnimation.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/launcher3/LauncherStateTransitionAnimation.java b/src/com/android/launcher3/LauncherStateTransitionAnimation.java index 8855cf037..c5ae9da8e 100644 --- a/src/com/android/launcher3/LauncherStateTransitionAnimation.java +++ b/src/com/android/launcher3/LauncherStateTransitionAnimation.java @@ -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(); |