Merge "Fix 5216579: Don't show IME switch option in numeric mode of lockscreen"

This commit is contained in:
Jim Miller
2011-08-28 15:10:27 -07:00
committed by Android (Google) Code Review

View File

@@ -165,7 +165,7 @@ public class PasswordUnlockScreen extends LinearLayout implements KeyguardScreen
View switchImeButton = findViewById(R.id.switch_ime_button);
final InputMethodManager imm = (InputMethodManager) getContext().getSystemService(
Context.INPUT_METHOD_SERVICE);
if (switchImeButton != null && hasMultipleEnabledIMEsOrSubtypes(imm, false)) {
if (mIsAlpha && switchImeButton != null && hasMultipleEnabledIMEsOrSubtypes(imm, false)) {
switchImeButton.setVisibility(View.VISIBLE);
switchImeButton.setOnClickListener(new OnClickListener() {
public void onClick(View v) {