Merge "Don't throw for LazyValue in Parcel.hasFileDescriptors()"

This commit is contained in:
Bernardo Rufino
2021-09-06 10:12:59 +00:00
committed by Gerrit Code Review

View File

@@ -665,7 +665,6 @@ public final class Parcel {
* @hide
*/
public static boolean hasFileDescriptors(Object value) {
getValueType(value); // Will throw if value is not supported
if (value instanceof LazyValue) {
return ((LazyValue) value).hasFileDescriptors();
} else if (value instanceof Parcelable) {
@@ -706,6 +705,8 @@ public final class Parcel {
}
}
}
} else {
getValueType(value); // Will throw if value is not supported
}
return false;
}