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

Commit 15e42a7a authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Message for input device name nullity check" into main

parents 3201a3ea ce12c494
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ public abstract class VirtualInputDeviceConfig {
        mVendorId = builder.mVendorId;
        mProductId = builder.mProductId;
        mAssociatedDisplayId = builder.mAssociatedDisplayId;
        mInputDeviceName = Objects.requireNonNull(builder.mInputDeviceName);
        mInputDeviceName = Objects.requireNonNull(builder.mInputDeviceName, "Missing device name");

        if (mAssociatedDisplayId == Display.INVALID_DISPLAY) {
            throw new IllegalArgumentException(
@@ -77,7 +77,7 @@ public abstract class VirtualInputDeviceConfig {
        mVendorId = in.readInt();
        mProductId = in.readInt();
        mAssociatedDisplayId = in.readInt();
        mInputDeviceName = Objects.requireNonNull(in.readString8());
        mInputDeviceName = Objects.requireNonNull(in.readString8(), "Missing device name");
    }

    /**