diff options
author | Tony Mak <tonymak@google.com> | 2019-11-04 16:15:08 +0000 |
---|---|---|
committer | Tony Mak <tonymak@google.com> | 2019-11-05 17:17:05 +0000 |
commit | 7773a752ece3083a89e94d4251d40c30328021dc (patch) | |
tree | b8f45b988f800d5c4ae49a21bfbd76a87883ee90 /tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java | |
parent | e39c7bd2113d342647c40011a6c6e62e31188de7 (diff) |
Make smart actions icon to respect dark theme setting
Problem:
The context from getPackageContext() does not have the theme set.
Solution:
Use the SystemUI theme to inflate the icon.
And we probably want to have a unified theme for all action chips anyway.
Test: Send myself a message "Code 12345", Verify that the
icon works in both light and dark theme.
Test: Send myself a message "www.android.com", verify that the
app icon is shown properly in both light and dark theme
Fixes: 142972040
Merged-In: I60f5fbea802fe1fdf498e93dfa4fdcebf38af78c
Change-Id: I60f5fbea802fe1fdf498e93dfa4fdcebf38af78c
Diffstat (limited to 'tests/Codegen/src/com/android/codegentest/SampleWithNestedDataClasses.java')
0 files changed, 0 insertions, 0 deletions