Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4151)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java

Issue 1235383002: Stop UI jumping when clicking Contextual Search Results in Custom Tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java
index efeef0faa2af439ad728ccd13b87159087bf80c6..5c58b94a9516fe708b3df7c0af8f012272716f09 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java
@@ -236,6 +236,7 @@ public class CustomTabActivity extends ChromeActivity {
@Override
public boolean createContextualSearchTab(ContentViewCore searchContentViewCore) {
if (mTab == null) return false;
+ getCurrentContentViewCore().clearSelection();
NavigationEntry entry =
searchContentViewCore.getWebContents().getNavigationController().getPendingEntry();
String url = entry != null

Powered by Google App Engine
This is Rietveld 408576698