• Pavel Shmakov's avatar
    Apply correct color scheme to Custom Tabs bottom bar · 3db87bf1
    Pavel Shmakov authored
    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: default avatarYusuf Ozuysal <yusufo@chromium.org>
    Reviewed-by: default avatarBecky Zhou <huayinz@chromium.org>
    Commit-Queue: Pavel Shmakov <pshmakov@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#664346}
    3db87bf1
chrome_java_sources.gni 145 KB