Skip to content
Commit 1d199a63 authored by Gustav Sennton's avatar Gustav Sennton
Browse files

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
parent 2a4e6f6e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment