OSDN Git Service

Fix wifi tile animating full-dark when slashing/unslashing
authorEvan Laird <evanlaird@google.com>
Thu, 21 Sep 2017 18:11:00 +0000 (14:11 -0400)
committerEvan Laird <evanlaird@google.com>
Thu, 21 Sep 2017 18:11:00 +0000 (14:11 -0400)
commit6026b057e7e81a8e54e1986007360b2f97bf454f
tree42e332c707b4e53a811e5238d3456ba34cde9660
parent8c8ae38eaca4e69e13ab65a0c962c7f394f786a2
Fix wifi tile animating full-dark when slashing/unslashing

WifiTile now owns a specific tile view that will animate the tint/alpha
of the slash but not the underlying drawable. Becasue we always animate
from the disconnected icon <-> disabled icon, this fixes the problem
where the disabled icon will start off as full-dark and appear to flash.

Fixes: 63534380
Test: turn wifi on/off; runtest -x
tests/src/com/android/systemui/qs/AlphaControlledSignalTileViewTest.java

Change-Id: I824572fdf00e122b7c17104b727171d81ff104c5
packages/SystemUI/src/com/android/systemui/qs/AlphaControlledSignalTileView.java [new file with mode: 0644]
packages/SystemUI/src/com/android/systemui/qs/SignalTileView.java
packages/SystemUI/src/com/android/systemui/qs/SlashDrawable.java
packages/SystemUI/src/com/android/systemui/qs/tileimpl/QSIconViewImpl.java
packages/SystemUI/src/com/android/systemui/qs/tileimpl/SlashImageView.java
packages/SystemUI/src/com/android/systemui/qs/tiles/WifiTile.java
packages/SystemUI/tests/src/com/android/systemui/qs/AlphaControlledSignalTileViewTest.java [new file with mode: 0644]