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

Commit a749304d authored by Pechetty Sravani (xWF)'s avatar Pechetty Sravani (xWF) Committed by Android (Google) Code Review
Browse files

Revert "InputManagerService: fix requireNonNull failure messages"

This reverts commit 5161fde5.

Reason for revert: <Droidmonitor created revert due to b/403394359.Will be verified through ABTD for standard investigation.>

Change-Id: Idd98bc24816b4629b8e09ea6157d4054ea50e312
parent 5161fde5
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, "listener must not be null");
        Objects.requireNonNull(listener, "event 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, "inputChannelToken must not be null");
        Objects.requireNonNull(inputChannelToken, "event must not be null");

        mNative.requestPointerCapture(inputChannelToken, enabled);
    }