diff options
| author | 2024-11-30 03:57:15 +0000 | |
|---|---|---|
| committer | 2024-11-30 03:57:15 +0000 | |
| commit | 32465dd9ae23c8c2a7953472bab240defeb0aeda (patch) | |
| tree | 15f8f4bfb85c4a6157d6f928956a4ae875706254 | |
| parent | 1039d29d3700f85c37b9b4ae360f873011ed50dd (diff) | |
| parent | e2d2a00c06ba1b9ef216150b357e2cb5f89788ef (diff) | |
Merge "Fix bad parcelable for deviceId" into main
| -rw-r--r-- | core/java/android/companion/AssociationInfo.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/companion/AssociationInfo.java b/core/java/android/companion/AssociationInfo.java index 2e108a1eed2c..2f161150a89b 100644 --- a/core/java/android/companion/AssociationInfo.java +++ b/core/java/android/companion/AssociationInfo.java @@ -460,8 +460,8 @@ public final class AssociationInfo implements Parcelable { } else { mDeviceIcon = null; } - - if (Flags.associationTag() && in.readInt() == 1) { + int deviceId = in.readInt(); + if (Flags.associationTag() && deviceId == 1) { mDeviceId = in.readTypedObject(DeviceId.CREATOR); } else { mDeviceId = null; |