summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/util/AlphaTintDrawableWrapper.java
Commit message (Collapse)AuthorAgeFilesLines
* Properly store values to pass to constant stateFabian Kozynski2021-09-241-0/+6
| | | | | | | | | There's no way to retrieve the last set tint list, so store it (as we were passing it to the constant state). Test: manual Fixes: 198413369 Change-Id: I665f9f955ff90accd6dcda275521715039641a6b
* Fix defined DrawableWrappers with proper ConstantStateFabian Kozynski2021-02-221-8/+66
| | | | | | | | | | | | | | DrawableWrappers extend from InsetDrawable instead, so a proper internal state is created. This way, we can use the proper drawable attribute and delegate most of the work to DrawableWrapper correctly. Also, create ConstantState that are able to create new instances of the correct drawables. Fixes: 179928515 Fixes: 175026098 Test: manual Change-Id: I8d07fd518ad66e6c456f7a1a6aa31fbaa18ba8aa
* Extend DrawableWrapper to set tint and alphaFabian Kozynski2020-12-091-0/+112
This way, the brightness icon can be overlaid properly and the colors will work. Test: manual Fixes: 174746414 Change-Id: I73bb98a08e89be780bd89cc48228f80b15b8b9de