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

Commit cfe037f6 authored by Vladimir Komsiyski's avatar Vladimir Komsiyski
Browse files

Remove exception from getInputDeviceId API

So tests relying on this being a @TestApi can run

Fix: 426885785
Test: presibmit
Flag: EXEMPT test fix
Change-Id: I78c56f20f5030ffb311c2dd14d641a3a580dacaf
parent 3cb9dadd
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -55,9 +55,6 @@ abstract class VirtualInputDevice implements Closeable {
    @FlaggedApi(com.android.hardware.input.Flags.FLAG_CREATE_VIRTUAL_KEYBOARD_API)
    @SystemApi
    public int getInputDeviceId() {
        if (!com.android.hardware.input.Flags.createVirtualKeyboardApi()) {
            throw new UnsupportedOperationException("Required flag is not enabled");
        }
        try {
            return mVirtualInputDevice.getInputDeviceId();
        } catch (RemoteException e) {