Merge "[Physical Keyboard] Fix bug for Mouse key page" into main

This commit is contained in:
Shaowei Shen
2025-01-13 21:15:13 -08:00
committed by Android (Google) Code Review

View File

@@ -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 {