diff options
author | John Reck <jreck@google.com> | 2011-02-15 10:12:30 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-02-15 11:32:30 -0800 |
commit | 92026735c1097fd71c6d50410e2af93e077381cd (patch) | |
tree | dc5984d0e867ffa0f8cd63aea9cc867e4f74f339 /src/com/android/browser/UrlInputView.java | |
parent | 4ea2c8e2013815003657c6239ae3a5f942079b83 (diff) | |
download | packages_apps_Browser-92026735c1097fd71c6d50410e2af93e077381cd.zip packages_apps_Browser-92026735c1097fd71c6d50410e2af93e077381cd.tar.gz packages_apps_Browser-92026735c1097fd71c6d50410e2af93e077381cd.tar.bz2 |
Switch the phone to use the omnibox instead of qsb
Initial changes, needs more work
Change-Id: Ic9bbe4eb8e95212baa7c40813217f01d9efdf286
Diffstat (limited to 'src/com/android/browser/UrlInputView.java')
-rw-r--r-- | src/com/android/browser/UrlInputView.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/com/android/browser/UrlInputView.java b/src/com/android/browser/UrlInputView.java index 6817b36..1f15b32 100644 --- a/src/com/android/browser/UrlInputView.java +++ b/src/com/android/browser/UrlInputView.java @@ -137,7 +137,7 @@ public class UrlInputView extends AutoCompleteTextView } private void setupDropDown() { - int width = mContainer.getWidth(); + int width = mContainer != null ? mContainer.getWidth() : getWidth(); if (width != getDropDownWidth()) { setDropDownWidth(width); } @@ -160,6 +160,9 @@ public class UrlInputView extends AutoCompleteTextView @Override public void onFocusChange(View v, boolean hasFocus) { + if (mWrappedFocusListener != null) { + mWrappedFocusListener.onFocusChange(v, hasFocus); + } if (hasFocus) { forceIme(); if (mInVoiceMode) { @@ -169,9 +172,6 @@ public class UrlInputView extends AutoCompleteTextView } else { finishInput(null, null, null); } - if (mWrappedFocusListener != null) { - mWrappedFocusListener.onFocusChange(v, hasFocus); - } } public void setUrlInputListener(UrlInputListener listener) { @@ -179,6 +179,7 @@ public class UrlInputView extends AutoCompleteTextView } public void forceIme() { + mInputManager.focusIn(this); mInputManager.showSoftInput(this, 0); } |