summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/UrlInputView.java
diff options
context:
space:
mode:
authorPanos Thomas <panos@codeaurora.org>2014-10-09 23:42:59 -0700
committerWebTech Code Review <code-review@localhost>2014-10-14 09:09:30 -0700
commit6ea3a429d4c043ec760b1802421cde2e257ae507 (patch)
treed588191915c150448c29a5711f247573288c185d /src/com/android/browser/UrlInputView.java
parent4799bdbd4b385ac1ffb9b78b8cf25a17b89000bc (diff)
downloadandroid_packages_apps_Gello-6ea3a429d4c043ec760b1802421cde2e257ae507.tar.gz
android_packages_apps_Gello-6ea3a429d4c043ec760b1802421cde2e257ae507.tar.bz2
android_packages_apps_Gello-6ea3a429d4c043ec760b1802421cde2e257ae507.zip
Fix for ActionBarContextView not shown in landscape mode
- Revert commit 244dc4635f1a43673d3a5a716639db7b2ba6e6b3 "Fix Url text not getting deleted on pressing delete key." - Set UrlInputView text to full URL in HIGHLIGHTED state as opposed to NORMAL state to address issue with delete key. Change-Id: I0d92937413d6c7c33e96f2134930179a64421316
Diffstat (limited to 'src/com/android/browser/UrlInputView.java')
-rw-r--r--src/com/android/browser/UrlInputView.java38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/com/android/browser/UrlInputView.java b/src/com/android/browser/UrlInputView.java
index c8f2d401..0ba05ef9 100644
--- a/src/com/android/browser/UrlInputView.java
+++ b/src/com/android/browser/UrlInputView.java
@@ -16,14 +16,10 @@
package com.android.browser;
-import android.content.ContentResolver;
import android.content.Context;
import android.content.res.Configuration;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
-import android.inputmethodservice.InputMethodService;
-import android.provider.Settings.Secure;
-import android.os.Build;
import android.text.Editable;
import android.text.InputFilter;
import android.text.InputFilter.LengthFilter;
@@ -36,12 +32,7 @@ import android.view.Gravity;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
-import android.view.inputmethod.EditorInfo;
-import android.view.inputmethod.InputConnection;
-import android.view.inputmethod.InputMethodInfo;
import android.view.inputmethod.InputMethodManager;
-import android.view.inputmethod.InputMethodSubtype;
-import android.text.InputType;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.AutoCompleteTextView;
@@ -56,7 +47,6 @@ import com.android.browser.search.SearchEngine;
import com.android.browser.search.SearchEngineInfo;
import com.android.browser.search.SearchEngines;
-import java.util.List;
/**
* url/search input view
* handling suggestions
@@ -115,34 +105,6 @@ public class UrlInputView extends AutoCompleteTextView
this(context, attrs, 0);
}
- private String getCurrentImeInfo(){
- InputMethodManager imm =
- (InputMethodManager) mContext.getSystemService(mContext.INPUT_METHOD_SERVICE);
- List<InputMethodInfo> mInputMethodProperties = imm.getEnabledInputMethodList();
-
- final int n = mInputMethodProperties.size();
- for (int i = 0; i < n; i++) {
- InputMethodInfo imeInfo = mInputMethodProperties.get(i);
- if (imeInfo.getId().equals(Secure.getString(mContext.getContentResolver(),
- Secure.DEFAULT_INPUT_METHOD))) {
- return imeInfo.getPackageName();
- }
- }
- return null;
- }
-
- @Override
- public InputConnection onCreateInputConnection(EditorInfo outAttrs) {
- String imeInfo = getCurrentImeInfo();
- if(imeInfo != null && imeInfo.equals(LATIN_INPUTMETHOD_PACKAGE_NAME)
- && (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN_MR2)) {
- outAttrs.imeOptions = EditorInfo.IME_ACTION_GO;
- return new BrowserInputConnection(this, false);
- }
- else
- return super.onCreateInputConnection(outAttrs);
- }
-
public UrlInputView(Context context) {
this(context, null);
}