Apply correct color scheme to Custom Tabs bottom bar
RemoteViews#apply doesn't use the overriden configuration of the Context passed into it. It instead creates a Context of remote app with default Configuration. Because of this Custom Tabs bottom bar always follows system settings. If COLOR_SCHEME_DARK or COLOR_SCHEME_LIGHT is set in the intent, the bottom bar should instead follow this setting along with the rest of the UI. To fix this I suggest doing RemoteViews#apply manually: first inflate the View just like RemoteViews#apply does, but with overridden Configuration, then use RemoteViews#reapply to apply the Actions. Bug: 966402 Change-Id: I8a89a4ee21baf5a759c4aabf0c7725430d609dc2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1626864Reviewed-by:Yusuf Ozuysal <yusufo@chromium.org> Reviewed-by:
Becky Zhou <huayinz@chromium.org> Commit-Queue: Pavel Shmakov <pshmakov@chromium.org> Cr-Commit-Position: refs/heads/master@{#664346}
Showing
Please register or sign in to comment