[Android TWA] Fix status bar colour in night mode
This CL changes the status bar colour used by TWAs when in night mode. This CL makes TWAs use the default theme colour instead of the toolbar colour provided in the TWA launch intent. This CL also: - Adds TabThemeColorHelper#isDefaultColorForced() in order to discriminate between reasons why TabThemeColorHelper#isDefaultColorUsed() returns true: - Using the default theme colour because using the default theme colour is forced (e.g. previews, night mode) - Using the default theme colour because the web contents do not specify a custom theme colour - Adds TabObserver#onDidChangeForcedThemeColor() to listen to changes in TabThemeColorHelper#isDefaultColorForced(). BUG=997796 Change-Id: I490e8ebe6c28b4dbe3b01112acd327e307efedb8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1795571Reviewed-by:Theresa <twellington@chromium.org> Reviewed-by:
Matthew Jones <mdjones@chromium.org> Reviewed-by:
Pavel Shmakov <pshmakov@chromium.org> Commit-Queue: Peter Kotwicz <pkotwicz@chromium.org> Cr-Commit-Position: refs/heads/master@{#707966}
Showing
This diff is collapsed.
Please register or sign in to comment