From debee0a26a466539de0df1c823e56ab19640745e Mon Sep 17 00:00:00 2001 From: Marco Loaiza Date: Tue, 3 Jan 2023 13:36:55 +0000 Subject: [PATCH] Fix error message for invalid deviceId in updateDeviceId Bug: b/264241604 Test: only fixing string Change-Id: I2b184316e9cdeaf8d5de5c5819db4fad8bce49d2 --- core/java/android/app/ContextImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/java/android/app/ContextImpl.java b/core/java/android/app/ContextImpl.java index 1120257142dc6..674fc34f99931 100644 --- a/core/java/android/app/ContextImpl.java +++ b/core/java/android/app/ContextImpl.java @@ -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(