Fix 3148496: Update LockScreen layouts on large device
This updates the layouts to conform to the latest UX spec on large devices and fixes a bug where the IME shown for PIN selection was the QWERTY keyboard. Change-Id: Ib9f0b1631f11c8eff6898bfff9447d3dad75cc42
This commit is contained in:
@@ -26,6 +26,7 @@ import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.preference.PreferenceActivity;
|
||||
import android.text.InputType;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
@@ -98,6 +99,11 @@ public class ConfirmLockPassword extends PreferenceActivity {
|
||||
mKeyboardHelper.setKeyboardMode(isAlpha ? PasswordEntryKeyboardHelper.KEYBOARD_MODE_ALPHA
|
||||
: PasswordEntryKeyboardHelper.KEYBOARD_MODE_NUMERIC);
|
||||
mKeyboardView.requestFocus();
|
||||
|
||||
int currentType = mPasswordEntry.getInputType();
|
||||
mPasswordEntry.setInputType(isAlpha ? currentType
|
||||
: (currentType | InputType.TYPE_CLASS_NUMBER));
|
||||
|
||||
return view;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user