Skip to content

Commit 214406a

Browse files
author
Jim Miller
committed
Fix 3384942: Force ASCII-capable IME to show on lockscreen
Only Latin-1 based passwords are supported on the system at this point. As such, we need a way to show a Latin-1-compliant keyboard when unlocking the device. It is expected that 3rd party IMEs honor this mode for Latin-1 password dialogs. If not, this change will cause lockscreen to revert to using the Android system IME for entering the password. Change-Id: I59bb56f6f5968b5abc50cf1b9b26c19ca4f183e4
1 parent 2f35281 commit 214406a

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

core/res/res/layout-sw600dp/keyguard_screen_password_landscape.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
android:textAppearance="?android:attr/textAppearanceMedium"
6363
android:background="@drawable/lockscreen_password_field_dark"
6464
android:textColor="#ffffffff"
65+
android:privateImeOptions="com.google.android.inputmethod.latin.forceAscii"
6566
/>
6667

6768
<!-- Numeric keyboard -->

core/res/res/layout-sw600dp/keyguard_screen_password_portrait.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
android:textAppearance="?android:attr/textAppearanceMedium"
5959
android:background="@drawable/lockscreen_password_field_dark"
6060
android:textColor="#ffffffff"
61+
android:privateImeOptions="com.google.android.inputmethod.latin.forceAscii"
6162
/>
6263

6364
<View

core/res/res/layout/keyguard_screen_password_landscape.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@
152152
android:background="@null"
153153
android:textColor="?android:attr/textColorPrimary"
154154
android:imeOptions="flagNoFullscreen|actionDone"
155+
android:privateImeOptions="com.google.android.inputmethod.latin.forceAscii"
155156
/>
156157

157158
<!-- This delete button is only visible for numeric PIN entry -->

core/res/res/layout/keyguard_screen_password_portrait.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
android:textAppearance="?android:attr/textAppearanceMedium"
118118
android:textColor="#ffffffff"
119119
android:imeOptions="actionDone"
120+
android:privateImeOptions="com.google.android.inputmethod.latin.forceAscii"
120121
/>
121122

122123
<!-- This delete button is only visible for numeric PIN entry -->

0 commit comments

Comments
 (0)