OSDN Git Service

Keep disabled FastBitmapDrawables disabled while fast scrolling.
authorTony Wickham <twickham@google.com>
Tue, 8 Nov 2016 18:40:34 +0000 (10:40 -0800)
committerTony Wickham <twickham@google.com>
Fri, 11 Nov 2016 18:59:17 +0000 (10:59 -0800)
commit6b910a235db74b1965c5f5bb16c7fe44b1dc4cdd
tree8f0d535e757499437fed6f356714302aae4a62f4
parentf4a0d1886fe5fcce3a3b722f675832b44f6e31c4
Keep disabled FastBitmapDrawables disabled while fast scrolling.

Previously, they were animating to be colored because they were
set to have a FAST_SCROLL_UNLHIGHLIGHTED state. Now they retain
their disabled color when changing fast scroll states.

Specfically, we remove the DISABLED state and instead make it a
property of the FastBitmapDrawable.

Bug: 32642959
Change-Id: I6cb2da134a550c267eebfc756eff8c91a33f028c
src/com/android/launcher3/BubbleTextView.java
src/com/android/launcher3/FastBitmapDrawable.java
src/com/android/launcher3/PendingAppWidgetHostView.java
src/com/android/launcher3/PreloadIconDrawable.java