Skip to content

[Android] Implement bottom bar parity with bottom navigation controls - #39453

Open
samartnik wants to merge 1 commit into
masterfrom
android_bottom_bar_parity
Open

[Android] Implement bottom bar parity with bottom navigation controls#39453
samartnik wants to merge 1 commit into
masterfrom
android_bottom_bar_parity

Conversation

@samartnik

Copy link
Copy Markdown
Contributor

@samartnik samartnik added this to the 1.96.x - Nightly milestone Aug 27, 2026
@samartnik samartnik self-assigned this Aug 27, 2026
@samartnik
samartnik requested review from a team as code owners August 27, 2026 21:15
@samartnik samartnik added CI/skip-ios Do not run CI builds for iOS CI/skip-windows-x64 Do not run CI builds for Windows x64 CI/skip-macos-arm64 Do not run CI builds for macOS arm64 labels Aug 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📋 Code Owners Summary

20 file(s) changed, 12 with assigned owners

3 team(s) affected: @brave/brave-core-owners, @brave/java-patch-reviewers, @brave/patch-reviewers


Owners and Their Files

@brave/brave-core-owners — 6 file(s)

... and 1 more files

@brave/java-patch-reviewers — 5 file(s)

@brave/patch-reviewers — 1 file(s)

"../../brave/android/java/org/chromium/chrome/browser/bookmarks/BraveBookmarkToolbarCoordinator.java",
"../../brave/android/java/org/chromium/chrome/browser/bookmarks/BraveBookmarkUtils.java",
"../../brave/android/java/org/chromium/chrome/browser/bookmarks/BraveBookmarkUtilsDummySuper.java",
"../../brave/android/java/org/chromium/chrome/browser/bottombar/BraveBottomBarActionCoordinator.java",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reported by reviewdog 🐶
[opengrep] New source files should not be added to sources.gni. Please see https://github.com/brave/brave-core/blob/master/docs/gni_sources.md for details


Source: https://github.com/brave/security-action/blob/main/assets/opengrep_rules/client/java_sources_gni.yaml


Cc @brave/java-sources-gni-reviewers

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is in line with upstream

# depended on by the component it depends on. Its sibling in the same directory,
# BraveBottomBarCoordinator, is constructed from chrome_java instead and so
# lives in the //brave/browser/ui/android/bottombar:java target.
brave_bottombar_java_sources = [ "//brave/browser/ui/android/bottombar/java/src/org/chromium/chrome/browser/ui/bottombar/BraveBottomBarButtonManager.java" ]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reported by reviewdog 🐶
[opengrep] New source files should not be added to sources.gni. Please see https://github.com/brave/brave-core/blob/master/docs/gni_sources.md for details


Source: https://github.com/brave/security-action/blob/main/assets/opengrep_rules/client/java_sources_gni.yaml


Cc @brave/java-sources-gni-reviewers

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As it's explained in the comment we need this to avoid circular dependency

its own would have to be depended on by the component it depends on.
regex:
re_pattern: |-
(android_library\("java"\) \{\n sources = \[.+?\n \]\n)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this pins sources = [ to being the first line inside android_library("java") { at exactly two spaces of indent, so an upstream testonly/visibility/comment line landing before it breaks the rewrite for a reason unrelated to its purpose. Anchoring on the target and letting .*? absorb the rest (e.g. (android_library\("java"\).*?\bsources\s*=\s*\[.*?\])) is the shape PLSTR-004 asks for.

"java/src/org/chromium/chrome/browser/ui/bottombar/BottomBarView.java",
"java/src/org/chromium/chrome/browser/ui/bottombar/BottomBarViewBinder.java",
]
+ sources += brave_bottombar_java_sources

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/skip-ios Do not run CI builds for iOS CI/skip-macos-arm64 Do not run CI builds for macOS arm64 CI/skip-windows-x64 Do not run CI builds for Windows x64

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Android] Implement bottom bar parity with bottom navigation controls

3 participants