Force input device changed callback when Keyboard layout info is updated
Virtual keyboard creation uses KEYBOARD_LAYOUT_ASSOCIATION reconfig to associated input device with keyboard layout info. But this can happen after input device added (Race condition between device creation and input device added callback.) If input device already added then we sometimes don't get input device changed callback since the generation is same. Test: atest VirtualKeyboardLayoutTest Bug: 277778640 Change-Id: I218b6d797da27ec3a383fbcd2ebeacb0afbf5fab
Showing
- include/input/InputDevice.h 5 additions, 0 deletionsinclude/input/InputDevice.h
- services/inputflinger/reader/mapper/KeyboardInputMapper.cpp 5 additions, 1 deletionservices/inputflinger/reader/mapper/KeyboardInputMapper.cpp
- services/inputflinger/tests/InputReader_test.cpp 9 additions, 0 deletionsservices/inputflinger/tests/InputReader_test.cpp
Loading
Please register or sign in to comment