OSDN Git Service

Fix qs tile drawing in edit QS panel
authorEvan Laird <evanlaird@google.com>
Wed, 12 Jul 2017 20:36:06 +0000 (16:36 -0400)
committerEvan Laird <evanlaird@google.com>
Wed, 12 Jul 2017 20:43:59 +0000 (16:43 -0400)
commit929bd54c6a91e78de4634cb50b781a9616157f5c
treef873ae9c00982b274c10f387c8a58738e3249dc4
parent3d0a74a9e4f54851f223ca70488b249c2acaa226
Fix qs tile drawing in edit QS panel

The problem here was reuse:

1. Tile has a SlashState -> gets SlashDrawable
2. Reused tile has no SlashState -> doesn't know how to gracefully
remove the slash and draw regularly, so it gets a slash anyway.

Unrelated, but also fixed: turn off slash animations in QS edit panel

Fixes: 63160044
Test: runtest -x
frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/SlashImageViewTest.java

Change-Id: I6841bfafcef0588d1ca63b3326dfee1a856618f3
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/tests/src/com/android/systemui/qs/SlashImageViewTest.java