From 5464e8f80c9d7e2f50e8a3dc7dee9ef660d83764 Mon Sep 17 00:00:00 2001 From: quh4gko8 <88831734+quh4gko8@users.noreply.github.com> Date: Wed, 15 Nov 2023 09:51:53 +0000 Subject: [PATCH] Do not clear URL bar when opening a web search activity --- ...lear-the-url-bar-on-focus-by-default.patch | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 patches/0117-Do-not-clear-the-url-bar-on-focus-by-default.patch diff --git a/patches/0117-Do-not-clear-the-url-bar-on-focus-by-default.patch b/patches/0117-Do-not-clear-the-url-bar-on-focus-by-default.patch new file mode 100644 index 00000000..c53eb7e2 --- /dev/null +++ b/patches/0117-Do-not-clear-the-url-bar-on-focus-by-default.patch @@ -0,0 +1,22 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: fgei +Date: Wed, 15 Nov 2023 09:48:53 +0000 +Subject: [PATCH] Do not clear the url bar on focus by default + +--- + .../chromium/chrome/browser/omnibox/LocationBarMediator.java | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/LocationBarMediator.java b/chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/LocationBarMediator.java +index be948d18eca39..eade95a66ba32 100644 +--- a/chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/LocationBarMediator.java ++++ b/chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/LocationBarMediator.java +@@ -195,7 +195,7 @@ class LocationBarMediator + private @BrandedColorScheme int mBrandedColorScheme = BrandedColorScheme.APP_DEFAULT; + private ObservableSupplierImpl mBackPressStateSupplier = + new ObservableSupplierImpl<>(); +- private boolean mShouldClearOmniboxOnFocus = true; ++ private boolean mShouldClearOmniboxOnFocus = false; + private ObservableSupplier mTabModelSelectorSupplier; + + /*package */ LocationBarMediator(@NonNull Context context,