Merge "Fix error message for invalid deviceId in updateDeviceId"

This commit is contained in:
TreeHugger Robot
2023-01-04 11:17:37 +00:00
committed by Android (Google) Code Review

View File

@@ -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(