Skip to content

Commit

Permalink
core: server: inputmanager: Check if input method is enabled before s…
Browse files Browse the repository at this point in the history
…howing missing keyboard layout notification

Change-Id: Ia0ea7cc5af4cbd53dd948db61d95460bd89feabd
  • Loading branch information
33bca authored and basamaryan committed Aug 14, 2023
1 parent dc5ae03 commit 516b2cd
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -1070,7 +1070,8 @@ private void deliverInputDevicesChanged(InputDevice[] oldInputDevices) {
deviceIdAndGeneration[i * 2] = inputDevice.getId();
deviceIdAndGeneration[i * 2 + 1] = inputDevice.getGeneration();

if (!inputDevice.isVirtual() && inputDevice.isFullKeyboard()) {
if (!inputDevice.isVirtual() && inputDevice.isFullKeyboard()
&& isInputDeviceEnabled(inputDevice.getId())) {
if (!containsInputDeviceWithDescriptor(oldInputDevices,
inputDevice.getDescriptor())) {
mTempFullKeyboards.add(numFullKeyboardsAdded++, inputDevice);
Expand Down

0 comments on commit 516b2cd

Please sign in to comment.