Bug 909940 - Disable updating the URL bar type for HTC keyboards. r=cpeterson

This commit is contained in:
Jim Chen 2013-09-23 17:23:37 -04:00
parent d431f68a6f
commit 311c1e5298
2 changed files with 9 additions and 0 deletions

View File

@ -1501,6 +1501,10 @@ public class BrowserToolbar extends GeckoRelativeLayout
mGo.setVisibility(View.VISIBLE);
if (InputMethods.shouldDisableUrlBarUpdate(mUrlEditText.getContext())) {
return;
}
int imageResource = R.drawable.ic_url_bar_go;
String contentDescription = mActivity.getString(R.string.go);
int imeAction = EditorInfo.IME_ACTION_GO;

View File

@ -61,6 +61,11 @@ final class InputMethods {
return METHOD_HTC_TOUCH_INPUT.equals(inputMethod);
}
public static boolean shouldDisableUrlBarUpdate(Context context) {
String inputMethod = getCurrentInputMethod(context);
return METHOD_HTC_TOUCH_INPUT.equals(inputMethod);
}
public static boolean shouldDelayUrlBarUpdate(Context context) {
String inputMethod = getCurrentInputMethod(context);
return METHOD_SAMSUNG.equals(inputMethod) ||