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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/omnibox/UrlBar.java

Issue 2806383003: Show keyboard on URL bar whenever it regains window focus (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/omnibox/UrlBar.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/UrlBar.java b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/UrlBar.java
index 8fa4ae6e01ed01a951947514061cacaa646a9df3..9dc8a9860b4073bb498982825d4de174ba3cdef4 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/UrlBar.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/UrlBar.java
@@ -71,8 +71,6 @@ public class UrlBar extends VerticallyFixedEditText {
/** The contents of the URL that precede the path/query before formatting. */
private String mOriginalUrlLocation;
- private boolean mShowKeyboardOnWindowFocus;
-
private boolean mFirstDrawComplete;
/**
@@ -513,16 +511,11 @@ public class UrlBar extends VerticallyFixedEditText {
}
@Override
- protected void onWindowVisibilityChanged(int visibility) {
- super.onWindowVisibilityChanged(visibility);
- if (visibility == View.GONE && isFocused()) mShowKeyboardOnWindowFocus = true;
- }
-
- @Override
public void onWindowFocusChanged(boolean hasWindowFocus) {
super.onWindowFocusChanged(hasWindowFocus);
+ if (DEBUG) Log.i(TAG, "onWindowFocusChanged: " + hasWindowFocus);
if (hasWindowFocus) {
- if (mShowKeyboardOnWindowFocus && isFocused()) {
Ted C 2017/04/10 18:27:13 Does this do anything wonky with multi-window wher
Changwan Ryu 2017/04/10 21:17:06 For the record, here's the summary of what we talk
+ if (isFocused()) {
// Without the call to post(..), the keyboard was not getting shown when the
// window regained focus despite this being the final call in the view system
// flow.
@@ -533,7 +526,6 @@ public class UrlBar extends VerticallyFixedEditText {
}
});
}
- mShowKeyboardOnWindowFocus = false;
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698