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: I934a4107a94cd52d60d7bcedd88a47c26085e6c2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2023-08-10 03:10:45 +00:00
committed by Automerger Merge Worker

View File

@@ -172,7 +172,8 @@ public class UsbConfiguration implements Parcelable {
String name = in.readString(); String name = in.readString();
int attributes = in.readInt(); int attributes = in.readInt();
int maxPower = 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); UsbConfiguration configuration = new UsbConfiguration(id, name, attributes, maxPower);
configuration.setInterfaces(interfaces); configuration.setInterfaces(interfaces);
return configuration; return configuration;