Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86aaca68 authored by Michael Wright's avatar Michael Wright
Browse files

Use new device identifier to check if a layout has been set.

Bug: 16486654
Change-Id: If55eacfc6878109b5bcb36ca338eb2cd75a40309
parent d87f2107
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -697,7 +697,9 @@ public class InputManagerService extends IInputManager.Stub
            synchronized (mDataStore) {
                for (int i = 0; i < numFullKeyboards; i++) {
                    final InputDevice inputDevice = mTempFullKeyboards.get(i);
                    if (mDataStore.getCurrentKeyboardLayout(inputDevice.getDescriptor()) == null) {
                    final String layout =
                            getCurrentKeyboardLayoutForInputDevice(inputDevice.getIdentifier());
                    if (layout == null) {
                        missingLayoutForExternalKeyboard = true;
                        if (i < numFullKeyboardsAdded) {
                            missingLayoutForExternalKeyboardAdded = true;