OSDN Git Service

Bug fix: QSB sometimes gets stuck to transparent.
authorSunny Goyal <sunnygoyal@google.com>
Thu, 24 Nov 2016 01:16:50 +0000 (06:46 +0530)
committerSunny Goyal <sunnygoyal@google.com>
Thu, 24 Nov 2016 10:02:45 +0000 (15:32 +0530)
commit1c581c6d61ad51df26390027725521289bd9ce4a
tree292fe89f3abe679a2a8894f425bf93e025dd280f
parentfeba90fe802cb54e02dd961dbea265c044ad5f9e
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
src/com/android/launcher3/FastBitmapDrawable.java
src/com/android/launcher3/PinchAnimationManager.java
src/com/android/launcher3/WorkspaceStateTransitionAnimation.java
src/com/android/launcher3/allapps/AllAppsBackgroundDrawable.java
src/com/android/launcher3/pageindicators/PageIndicatorDots.java