From c76e1d1037dbce0180013a8fb22db07c7d68b04d Mon Sep 17 00:00:00 2001 From: Artem Samoilenko Date: Thu, 12 Dec 2024 16:10:20 -0500 Subject: [PATCH] [Android] Fix for default action on opening link --- .../chrome/browser/tabmodel/BraveTabGroupModelFilter.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/browser/tabmodel/android/java/src/org/chromium/chrome/browser/tabmodel/BraveTabGroupModelFilter.java b/browser/tabmodel/android/java/src/org/chromium/chrome/browser/tabmodel/BraveTabGroupModelFilter.java index daf64dea18cb..469795af061b 100644 --- a/browser/tabmodel/android/java/src/org/chromium/chrome/browser/tabmodel/BraveTabGroupModelFilter.java +++ b/browser/tabmodel/android/java/src/org/chromium/chrome/browser/tabmodel/BraveTabGroupModelFilter.java @@ -22,7 +22,13 @@ public class BraveTabGroupModelFilter { public boolean shouldUseParentIds(Tab tab) { if (linkClicked(tab.getLaunchType()) && ChromeSharedPreferences.getInstance() - .readBoolean(BravePreferenceKeys.BRAVE_TAB_GROUPS_ENABLED, true) + .readBoolean( + BravePreferenceKeys.BRAVE_TAB_GROUPS_ENABLED, + ChromeSharedPreferences.getInstance() + .readBoolean( + BravePreferenceKeys + .BRAVE_TAB_GROUPS_ENABLED_DEFAULT_VALUE, + true)) && isTabModelRestored() && !mIsResetting) { return true;