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

Commit c1863f88 authored by Cosmin Băieș's avatar Cosmin Băieș
Browse files

Add missing validation in IInputMethodWrapper

The case handling DO_SET_STYLUS_WINDOW_IDLE_TIMEOUT was missing
the validation check, which could lead to NullPointerExceptions.

Test: n/a
Bug: 278853086
Change-Id: I998e20df74b618396cfe3b1fa5d7d4e7d13e054c
parent ca08538c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -304,7 +304,9 @@ class IInputMethodWrapper extends IInputMethod.Stub
                return;
            }
            case DO_SET_STYLUS_WINDOW_IDLE_TIMEOUT: {
                if (isValid(inputMethod, target, "DO_SET_STYLUS_WINDOW_IDLE_TIMEOUT")) {
                    inputMethod.setStylusWindowIdleTimeoutForTest((long) msg.obj);
                }
                return;
            }
        }