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

Commit ebfead07 authored by Chun-Ku Lin's avatar Chun-Ku Lin
Browse files

Make custom ShadowInputDevice#getDeviceIds return ids from deviceMap

In the past, besides adding the device to ShadowInputDevice, the caller
also need to change the static deviceIds. This results duplicate efforts
and would be error pront when the deviceIds doesn't match the available
devices' ids.

Changing #getDeviceIds returns ids from the deviceMap matchs the
InputDevice#getDeviceIds API while also reducing the duplicate efforts
on creating deviceIds arrays.

Test: atest SettingsRoboTests
Flag: EXEMPT test only
Change-Id: I6c8c9baa26c6826fc3433b8024165df695c008bf
parent bd8546ed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment