New tab button at incognito tab switcher must open incognito tab (#25261)
New tab button at incognito tab switcher must open incognito tab; fixes brave/brave-browser#40583
This commit is contained in:
@@ -364,7 +364,11 @@ public class BraveToolbarManager extends ToolbarManager {
|
||||
recordNewTabClick();
|
||||
((ChromeActivity) mActivity)
|
||||
.getMenuOrKeyboardActionController()
|
||||
.onMenuOrKeyboardAction(R.id.new_tab_menu_id, false);
|
||||
.onMenuOrKeyboardAction(
|
||||
mIncognitoStateProvider.isIncognitoSelected()
|
||||
? R.id.new_incognito_tab_menu_id
|
||||
: R.id.new_tab_menu_id,
|
||||
false);
|
||||
};
|
||||
|
||||
assert (mBottomControlsCoordinatorSupplier.get()
|
||||
|
||||
Reference in New Issue
Block a user