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

Commit 5161fde5 authored by Harry Cutts's avatar Harry Cutts
Browse files

InputManagerService: fix requireNonNull failure messages

Looks like there were a couple of copy-paste errors in change
I58a6aa93c3122923db8450471c9059a3e4b16268.

Bug: 245989146
Test: none
Flag: EXEMPT log only update
Change-Id: I3b2985016668119e247dcdce3f9bf34aec0a8a35
parent 06312a45
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1230,7 +1230,7 @@ public class InputManagerService extends IInputManager.Stub
                "registerTabletModeChangedListener()")) {
            throw new SecurityException("Requires TABLET_MODE_LISTENER permission");
        }
        Objects.requireNonNull(listener, "event must not be null");
        Objects.requireNonNull(listener, "listener must not be null");

        synchronized (mTabletModeLock) {
            final int callingPid = Binder.getCallingPid();
@@ -1342,7 +1342,7 @@ public class InputManagerService extends IInputManager.Stub

    @Override
    public void requestPointerCapture(IBinder inputChannelToken, boolean enabled) {
        Objects.requireNonNull(inputChannelToken, "event must not be null");
        Objects.requireNonNull(inputChannelToken, "inputChannelToken must not be null");

        mNative.requestPointerCapture(inputChannelToken, enabled);
    }