diff options
author | Michael Kolb <kolby@google.com> | 2012-04-13 14:25:27 -0700 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2012-04-13 14:25:27 -0700 |
commit | 4bb6fcb473ec4b2ce4cddf573280fd47f21a20c7 (patch) | |
tree | 41f11edc6d71c3d4ab0d09d04c4b1d435d0172f0 | |
parent | e11b9212f201f787652737cab586f7cf28c27dd0 (diff) | |
download | packages_apps_Browser-4bb6fcb473ec4b2ce4cddf573280fd47f21a20c7.zip packages_apps_Browser-4bb6fcb473ec4b2ce4cddf573280fd47f21a20c7.tar.gz packages_apps_Browser-4bb6fcb473ec4b2ce4cddf573280fd47f21a20c7.tar.bz2 |
fix QuickControls url input IME
Change-Id: I9c8cfef29c94d19d82a39d64a888209f5917ddb7
-rw-r--r-- | src/com/android/browser/NavigationBarBase.java | 3 | ||||
-rw-r--r-- | src/com/android/browser/UrlInputView.java | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/browser/NavigationBarBase.java b/src/com/android/browser/NavigationBarBase.java index ed96257..41af619 100644 --- a/src/com/android/browser/NavigationBarBase.java +++ b/src/com/android/browser/NavigationBarBase.java @@ -261,6 +261,9 @@ public class NavigationBarBase extends LinearLayout implements } else if (mInVoiceMode) { mUrlInput.showDropDown(); } + if (mTitleBar.useQuickControls()) { + mUrlInput.showIME(); + } } public void onProgressStarted() { diff --git a/src/com/android/browser/UrlInputView.java b/src/com/android/browser/UrlInputView.java index 2f0c6a8..1ba26fe 100644 --- a/src/com/android/browser/UrlInputView.java +++ b/src/com/android/browser/UrlInputView.java @@ -250,6 +250,11 @@ public class UrlInputView extends AutoCompleteTextView mInputManager.hideSoftInputFromWindow(getWindowToken(), 0); } + void showIME() { + mInputManager.focusIn(this); + mInputManager.showSoftInput(this, 0); + } + private void finishInput(String url, String extra, String source) { mNeedsUpdate = true; dismissDropDown(); |