-
Notifications
You must be signed in to change notification settings - Fork 892
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6595 from brave/android_settings_menu_1.13.x
initializes bottom menu toolbar variable on Android (uplift to 1.13.x)
- Loading branch information
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
...ome-android-java-src-org-chromium-chrome-browser-toolbar-ToolbarAppMenuManager.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarAppMenuManager.java b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarAppMenuManager.java | ||
index cabff32bdae3..a74dd961aebb 100644 | ||
--- a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarAppMenuManager.java | ||
+++ b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarAppMenuManager.java | ||
@@ -162,6 +162,7 @@ class ToolbarAppMenuManager implements AppMenuObserver { | ||
mAppMenuHandler = appMenuHandler; | ||
mAppMenuHandler.addObserver(this); | ||
mAppMenuButtonHelper = mAppMenuHandler.createAppMenuButtonHelper(); | ||
+ mAppMenuButtonHelper.setMenuShowsFromBottom(mBottomToolbarEnabled); | ||
mAppMenuButtonHelper.setOnAppMenuShownListener(() -> { | ||
RecordUserAction.record("MobileToolbarShowMenu"); | ||
mToolbar.onMenuShown(); | ||
@@ -203,4 +204,5 @@ class ToolbarAppMenuManager implements AppMenuObserver { | ||
mToolbar.removeAppMenuUpdateBadge(false); | ||
} | ||
} | ||
+ private boolean mBottomToolbarEnabled = false; public void setBottomMenu(boolean enabled) {mBottomToolbarEnabled = enabled;if (mAppMenuButtonHelper != null) mAppMenuButtonHelper.setMenuShowsFromBottom(enabled); } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters