Chromium Code Reviews| 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; |
| } |
| } |