commit | bef6c6e266131e205cdf7b2e9afed7ecb1d2ea3c | [log] [tgz] |
---|---|---|
author | Lin Guo <sinyu890807@gmail.com> | Tue Oct 22 18:32:57 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Oct 22 18:32:57 2024 |
tree | cb55355da0c8cfaa33469dce6ff47a5d1c966db5 | |
parent | cec453be1f1956aa4d78273f10a16f3a9c1122c5 [diff] |
Fix crash when enabling edge-to-edge feature on Android 9 and below. The Window.setNavigationBarContrastEnforced method should only be called on Android API 29 (Android 10) and above. Refer link: https://developer.android.com/reference/android/view/Window#setNavigationBarContrastEnforced(boolean) In the TabbedNavigationBarColorController.java file, the updateNavigationBarColor() method calls Window.setNavigationBarContrastEnforced without checking the API level. This causes a crash on devices running Android 9 (API 28) and below when the edge-to-edge feature is enabled. Bug: 374574269 Change-Id: Ia15b024caebbf0998a2c3ac5aaaf7a5e2ba7dc65 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5937007 Reviewed-by: Charles Hager <clhager@google.com> Commit-Queue: Wenyu Fu <wenyufu@chromium.org> Reviewed-by: Wenyu Fu <wenyufu@chromium.org> Reviewed-by: Gang Wu <gangwu@chromium.org> Reviewed-by: Ted Choc <tedchoc@chromium.org> Cr-Commit-Position: refs/heads/main@{#1372199}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.