diff options
author | 2024-12-05 18:00:29 -0500 | |
---|---|---|
committer | 2024-12-06 10:23:27 -0500 | |
commit | 0aa95a2e8c571f9b8ea9ea170d5c0106d29ed153 (patch) | |
tree | 778c9514b2cfbb19bae80b124422ca333d2f7f3c /api/api.go | |
parent | dbe81bbba981a253c3381d92da91792d4921944a (diff) |
[notif] fix icon coloring logic
two main fixes here:
1. Fix the `viewBounds` calculation. And unify the logic with our
existing ViewUtil.kt class
2. Remove the optimization(?) of pre-calculating the dark area in the
iconColors flow from the notif collection view model. I think that
it's trying to be fancy and avoid calculating region-based tint if it
doesn't change in a given area of the screen. The problem is that
sometimes the icons aren't notified that the color actually changed.
Test: ViewUtilTest NotificationIconContainerStatusBarViewModelTest
Test: manual: split screen with dark app on left and light app on right
Bug: 382543507
Flag: EXEMPT bugfix
Change-Id: Ib463b7687a437bef65365b25eeb9757e75d099fa
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions