diff options
| author | 2022-12-06 15:08:00 +0000 | |
|---|---|---|
| committer | 2022-12-06 16:54:49 +0000 | |
| commit | 53d8776f28a030d0b7feb9840f6d00c3bbd5c689 (patch) | |
| tree | dc6d3cec87ed729cb0b7e31e09f60e43849bd6fd | |
| parent | 91618c202d990ca0359a37f675ed0eeb676a4ad6 (diff) | |
Fix PK Settings notification for non-keyboard devices
Refactoring CL ag/20500090 caused a side effect where all non-keyboard
devices also ran default layout selection logic and showed notification
to configure OK layout.
Need to filter by non-virtual and full keyboards.
Test: Manual
Bug: 261173318
Change-Id: Ib624c19e584b7d10f9d36bc852ee9ac9ed070d0e
| -rw-r--r-- | services/core/java/com/android/server/input/KeyboardLayoutManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/input/KeyboardLayoutManager.java b/services/core/java/com/android/server/input/KeyboardLayoutManager.java index 85d6197ffe1c..1bb14aa6c438 100644 --- a/services/core/java/com/android/server/input/KeyboardLayoutManager.java +++ b/services/core/java/com/android/server/input/KeyboardLayoutManager.java @@ -145,7 +145,7 @@ final class KeyboardLayoutManager implements InputManager.InputDeviceListener { @Override public void onInputDeviceChanged(int deviceId) { final InputDevice inputDevice = getInputDevice(deviceId); - if (inputDevice == null) { + if (inputDevice == null || inputDevice.isVirtual() || !inputDevice.isFullKeyboard()) { return; } synchronized (mDataStore) { |