-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not clear URL bar when opening a web search activity
- Loading branch information
1 parent
a332e6e
commit 5464e8f
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
patches/0117-Do-not-clear-the-url-bar-on-focus-by-default.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,22 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: fgei <[email protected]> | ||
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<Boolean> mBackPressStateSupplier = | ||
new ObservableSupplierImpl<>(); | ||
- private boolean mShouldClearOmniboxOnFocus = true; | ||
+ private boolean mShouldClearOmniboxOnFocus = false; | ||
private ObservableSupplier<TabModelSelector> mTabModelSelectorSupplier; | ||
|
||
/*package */ LocationBarMediator(@NonNull Context context, |