Merge "Use type safe API of readParcelableArray" into tm-dev am: 39de488710
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/24310393 Change-Id: Id3b9ebea01bfdf5a79267909a3b02451cc0fc028 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