summaryrefslogtreecommitdiff
path: root/packages/Shell/src
diff options
context:
space:
mode:
author Bernardo Rufino <brufino@google.com> 2021-09-06 08:51:21 +0100
committer Bernardo Rufino <brufino@google.com> 2021-09-06 08:51:21 +0100
commitc087f6248276c21f7f89a424f1765b63dba4133c (patch)
tree05e07bc46c4c8066cd1fd84c78fa0ebb8a4b1579 /packages/Shell/src
parente22278838e655ed80b5c8e060632835a11df45eb (diff)
Don't throw for LazyValue in Parcel.hasFileDescriptors()
In aosp/1819733 we extracted Parcel.hasFileDescriptor() for types produced by Parcel.writeValue() and consumed by Parcel.readValue() out of Bundle into Parcel. It's supposed to handle LazyValue too. However, we put a check to verify that it was a type supported by readValue()/writeValue() by retrieving the VAL_XXX type of the value via Parcel.getValueType(), however, that method throws for LazyValue since we don't actually write that special type on the wire. However, we still want Parcel.hasFileDescriptor() to support it, so moving the check into a last 'else' statement, making sure we don't throw in case the value is a LazyValue. Bug: 195622897 Bug: 198433827 Test: atest CtsNetTestCases android.net.cts.CaptivePortalTest#testCaptivePortalIsNotDefaultNetwork Change-Id: I1e6ec122557c12e74db6890e1631fec3cefe31f6
Diffstat (limited to 'packages/Shell/src')
0 files changed, 0 insertions, 0 deletions