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

Commit debee0a2 authored by Marco Loaiza's avatar Marco Loaiza
Browse files

Fix error message for invalid deviceId in updateDeviceId

Bug: b/264241604
Test: only fixing string
Change-Id: I2b184316e9cdeaf8d5de5c5819db4fad8bce49d2
parent 03882bc8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3039,7 +3039,8 @@ class ContextImpl extends Context {
    public void updateDeviceId(int updatedDeviceId) {
        if (!isValidDeviceId(updatedDeviceId)) {
            throw new IllegalArgumentException(
                    "Not a valid ID of the default device or any virtual device: " + mDeviceId);
                    "Not a valid ID of the default device or any virtual device: "
                            + updatedDeviceId);
        }
        if (mIsExplicitDeviceId) {
            throw new UnsupportedOperationException(