Merge "Use type safe API of readParcelableArray" into sc-qpr1-dev

This commit is contained in:
Treehugger Robot
2023-08-10 02:51:56 +00:00
committed by Android (Google) Code Review

View File

@@ -172,7 +172,8 @@ public class UsbConfiguration implements Parcelable {
String name = in.readString();
int attributes = in.readInt();
int maxPower = in.readInt();
Parcelable[] interfaces = in.readParcelableArray(UsbInterface.class.getClassLoader());
Parcelable[] interfaces = in.readParcelableArray(
UsbInterface.class.getClassLoader(), UsbInterface.class);
UsbConfiguration configuration = new UsbConfiguration(id, name, attributes, maxPower);
configuration.setInterfaces(interfaces);
return configuration;