summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Vaibhav Devmurari <vdevmurari@google.com> 2023-03-06 12:06:46 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-03-06 12:06:46 +0000
commit26043b29204494a8f6dd4dd507f4e0187390502c (patch)
treed6eeee6859bd8a94688be3b700130bef519af672
parent370a76b2a2d0349d73345a0ff1a68d275f35a21c (diff)
parent3fb8aa6375786a96293a309185c59b900897c8e1 (diff)
Merge "Fix keyboard not configured properly" into udc-dev
-rw-r--r--services/core/java/com/android/server/input/KeyboardLayoutManager.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/input/KeyboardLayoutManager.java b/services/core/java/com/android/server/input/KeyboardLayoutManager.java
index c1c8af2fd9e0..088740e83c42 100644
--- a/services/core/java/com/android/server/input/KeyboardLayoutManager.java
+++ b/services/core/java/com/android/server/input/KeyboardLayoutManager.java
@@ -150,6 +150,10 @@ final class KeyboardLayoutManager implements InputManager.InputDeviceListener {
@Override
public void onInputDeviceAdded(int deviceId) {
onInputDeviceChanged(deviceId);
+ if (useNewSettingsUi()) {
+ // Force native callback to set up keyboard layout overlay for newly added keyboards
+ reloadKeyboardLayouts();
+ }
}
@Override