Merge "Don't throw for LazyValue in Parcel.hasFileDescriptors()"
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user