Merge "Use type safe API of readParcelableArray" into udc-dev am: 92c203725f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/24310240 Change-Id: I806aef74de36ec52aefe7125472c06524945f5c3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user