From aaf4b47e3456474fb6847cbe3440d9a75bc54964 Mon Sep 17 00:00:00 2001 From: Hall Liu Date: Thu, 11 Jan 2018 17:23:40 -0800 Subject: [PATCH] Use proper classloader when reading from parcel Use the proper classloader when loading ImsStreamMediaProfile from a parcel. Bug: 71873453 Test: manual Change-Id: Idf60f18b5d25b4c8eae225cb92a5391303c86d3b --- telephony/java/com/android/ims/ImsCallProfile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telephony/java/com/android/ims/ImsCallProfile.java b/telephony/java/com/android/ims/ImsCallProfile.java index 489c208a0d466..693aaff8ce0f1 100644 --- a/telephony/java/com/android/ims/ImsCallProfile.java +++ b/telephony/java/com/android/ims/ImsCallProfile.java @@ -351,7 +351,7 @@ public class ImsCallProfile implements Parcelable { mServiceType = in.readInt(); mCallType = in.readInt(); mCallExtras = in.readBundle(); - mMediaProfile = in.readParcelable(null); + mMediaProfile = in.readParcelable(ImsStreamMediaProfile.class.getClassLoader()); } public static final Creator CREATOR = new Creator() {