Skip to content
Commit 3fb8aa63 authored by Vaibhav Devmurari's avatar Vaibhav Devmurari
Browse files

Fix keyboard not configured properly

The native callback getKeyboardLayoutOverlay() occurs before
device added, we don't set layout properly, then call reload layouts
on device added that will force native callback again.

Long term solution: Include all necessary information for auto-
detection of layout in InputDeviceIdentifier so that we don't need
to wait for onInputDeviceAdded() to auto-select layout.
InputDeviceIdentifier is sent with the native callback as parameter
so we don't need to rely on getInputDevice() method to get the
necessary information for auto-detection.

Test: manual
Bug: 259530132
Change-Id: I941bb8544cee8fee736e9cedcff10030361e45c9
parent 1dd10069
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment