[Physical Keyboard] Fix bug for Mouse key page
Add default Locale to get keycode for mouse key. Bug: 387152641 Bug: 386907528 Flag: com.android.settings.keyboard.keyboard_and_touchpad_a11y_new_page_enabled Test: atest packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod Change-Id: I8cc4a08449c13b426ffa24ddc29fd16407b064c8
This commit is contained in:
@@ -118,7 +118,8 @@ public class MouseKeysImageListAdapter extends
|
|||||||
|
|
||||||
private String getDisplayLabel(InputDevice currentInputDevice, int keycode) {
|
private String getDisplayLabel(InputDevice currentInputDevice, int keycode) {
|
||||||
return String.valueOf(currentInputDevice.getKeyCharacterMap().getDisplayLabel(
|
return String.valueOf(currentInputDevice.getKeyCharacterMap().getDisplayLabel(
|
||||||
currentInputDevice.getKeyCodeForKeyLocation(keycode))).toLowerCase(Locale.ROOT);
|
currentInputDevice.getKeyCodeForKeyLocation(keycode))).toLowerCase(
|
||||||
|
Locale.getDefault());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class MouseKeyImageViewHolder extends RecyclerView.ViewHolder {
|
public static class MouseKeyImageViewHolder extends RecyclerView.ViewHolder {
|
||||||
|
Reference in New Issue
Block a user