summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorGustav Sennton <gsennton@google.com>2019-05-23 12:57:03 +0100
committerGustav Sennton <gsennton@google.com>2019-05-23 13:30:09 +0100
commit1d199a630aeb5639f80a0b4ac542c7d0013b24a8 (patch)
treefb226ceb40f2441cb591df0c5ca07cce610c61aa /tools/aapt2/java/JavaClassGenerator_test.cpp
parent2a4e6f6e2d0588baf5ce8006abf418dd0edbfa92 (diff)
Ensure smart suggestion background color is updated just after inflation
Whenever we inflate new smart suggestions we create a new SmartReplyView instance with a default background color. We then use that default color to color our smart suggestion buttons. With this CL we instead fetch the background color of the owning notification (just after the smart suggestions are inflated) to ensure the colors of the smart suggestions are consistent with the color of the notification. Smart Suggestions color update flow: Before this CL: 1. notification update 2. smart suggestions inflated - using SmartReplyView.mDefaultBackgroundColor (white) 3. add SmartReplyView to NotificationContentView -> calls into NotificationContentView.setBackgroundTintColor() now update smart suggestions colors After this CL: 1. notification update 2. smart suggestions inflated - using SmartReplyView.mDefaultBackgroundColor (white) 3. [this CL] update smart suggestion colors 4. add SmartReplyView to NotificationContentView -> calls into NotificationContentView.setBackgroundTintColor() now update smart suggestions colors Bug: 132838369 Test: manual, as per instructions in the bug Change-Id: Ie6fe13b9d01faf4e19b71a15532a1b664617ecbb
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions