commit | bc2ea2b7e527e3d07736d8339cd4e9f3de279a1e | [log] [tgz] |
---|---|---|
author | Rubin Xu <rubinxu@google.com> | Wed Feb 07 08:10:08 2018 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Fri Mar 16 21:38:28 2018 +0000 |
tree | 352bc50c36190309526ba32f16ad283fc078aa65 | |
parent | 38103a8813f2650b6c4278aefb45dc519ece0739 [diff] |
Fix VerifyCredentialResponse parcelling code There was an asymmetry between parcelling and unparcelling of VerifyCredentialResponse that could lead to type confusion if packed with other objects in a Parcel. Test: none Bug: 71714464 Change-Id: Icff68879e249422ccca49f2bb7db85c35b4cb353 (cherry picked from commit 54813e988884f0d604d5358569f10feda8622f46)
diff --git a/core/java/com/android/internal/widget/VerifyCredentialResponse.java b/core/java/com/android/internal/widget/VerifyCredentialResponse.java index 48109ca..c4d91e0 100644 --- a/core/java/com/android/internal/widget/VerifyCredentialResponse.java +++ b/core/java/com/android/internal/widget/VerifyCredentialResponse.java
@@ -95,6 +95,8 @@ if (mPayload != null) { dest.writeInt(mPayload.length); dest.writeByteArray(mPayload); + } else { + dest.writeInt(0); } } }