summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/qs/SlashDrawable.java
Commit message (Collapse)AuthorAgeFilesLines
* Annotate com.android.systemui.qs with @NullableFedor Kudasov2022-01-071-0/+2
| | | | | | Bug: 209459024 Test: m SystemUI-core Change-Id: I48ba7039ca826c8304f425f34a8c84981710dc77
* Fix wifi tile animating full-dark when slashing/unslashingEvan Laird2017-09-211-1/+5
| | | | | | | | | | | | | 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
* Round mobile icon slash and fix colorEvan Laird2017-07-141-3/+4
| | | | | | | | | Airplane mode slashed mobile signal icon should be rounded. Also it was drawing in the foreground color instead of background. That was bad. Test: visual Change-Id: Ie7137929e1b54118482b0990e3d86ccb0f620e56 Fixes: 63533582
* Fix qs tile drawing in edit QS panelEvan Laird2017-07-121-5/+13
| | | | | | | | | | | | | | | | 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
* Round the slashes of SlashDrawableEvan Laird2017-06-091-42/+86
| | | | | | | | | | | Draw the slashes vertically as rounded rects, and then rotate them 45 degrees. Rounded-ness is 1dp. The slash is animated over a period of 350ms. Test: visual Bug: 37013523 Change-Id: I25d82041936ed91b77f539005dcfb326bd8cc8c7
* Remove logging from SlashDrawableEvan Laird2017-05-231-3/+0
| | | | | Test: make -j40 Change-Id: Id706c478053980ccae8be0c96d5c44602b0b9682
* Start drawing QS slashes rather than using AVDSJason Monk2017-05-051-0/+178
These need a bit more work like length control and animations, etc. but this is a decent start. Test: visual Change-Id: I750d777b2b4a19f8c586066712f5a3f7e79befd6