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

Commit f5aff5c9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix error message for invalid deviceId in updateDeviceId"

parents e3f58d37 debee0a2
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(