summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/FastBitmapDrawable.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2016-11-24 06:46:50 +0530
committerSunny Goyal <sunnygoyal@google.com>2016-11-24 15:32:45 +0530
commit1c581c6d61ad51df26390027725521289bd9ce4a (patch)
tree292fe89f3abe679a2a8894f425bf93e025dd280f /src/com/android/launcher3/FastBitmapDrawable.java
parentfeba90fe802cb54e02dd961dbea265c044ad5f9e (diff)
downloadandroid_packages_apps_Trebuchet-1c581c6d61ad51df26390027725521289bd9ce4a.tar.gz
android_packages_apps_Trebuchet-1c581c6d61ad51df26390027725521289bd9ce4a.tar.bz2
android_packages_apps_Trebuchet-1c581c6d61ad51df26390027725521289bd9ce4a.zip
Bug fix: QSB sometimes gets stuck to transparent.
At some places, we were calling removeAllListeners before calling cancel on an animation. AnimationListeners are also used to track states, and removing listeners before canceling will prevent onAnimationEnd to be called, thus preventing state cleanup. PinchAnimationManager was causing ZeroAlphaAnimatorListener to be removing from Qsb alpha animation, making the MultiStateAlphaController think there is a zeroAlpha animation running. > Removing all instances of removeAllListeners > Updating various affected listeners to handle onAnimatinoCancel > Fixing WorkspaceStateTransitionAnimation, which was animation QSB alpha on page scroll index Bug: 31910152 Change-Id: Ie7f31b67d4c502badcdd41f7b04867d1f35f5d27
Diffstat (limited to 'src/com/android/launcher3/FastBitmapDrawable.java')
-rw-r--r--src/com/android/launcher3/FastBitmapDrawable.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/com/android/launcher3/FastBitmapDrawable.java b/src/com/android/launcher3/FastBitmapDrawable.java
index 7eaae5a44..270d53939 100644
--- a/src/com/android/launcher3/FastBitmapDrawable.java
+++ b/src/com/android/launcher3/FastBitmapDrawable.java
@@ -364,7 +364,6 @@ public class FastBitmapDrawable extends Drawable {
private AnimatorSet cancelAnimator(AnimatorSet animator) {
if (animator != null) {
- animator.removeAllListeners();
animator.cancel();
}
return null;