commit | 821c3463b0a0941b0dca722abd8496cdfdaf2e7e | [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 Feb 16 22:12:06 2018 +0000 |
tree | 36c7e2a60c425d2622717aadac965d772bfd13ae | |
parent | 30c924cc2ebb07d3be9604a0102fb45b71e45759 [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 ad6020c..7d1c706 100644 --- a/core/java/com/android/internal/widget/VerifyCredentialResponse.java +++ b/core/java/com/android/internal/widget/VerifyCredentialResponse.java
@@ -98,6 +98,8 @@ if (mPayload != null) { dest.writeInt(mPayload.length); dest.writeByteArray(mPayload); + } else { + dest.writeInt(0); } } }