Merge "Fix read/write parcel of CallAttributes"

am: ed3af9f960

Change-Id: I8706e6e4364e70728c124af6ed44780996e6faf5
This commit is contained in:
Jordan Liu
2019-01-31 17:39:31 -08:00
committed by android-build-merger

View File

@@ -50,10 +50,9 @@ public class CallAttributes implements Parcelable {
}
private CallAttributes(Parcel in) {
mPreciseCallState = (PreciseCallState)
in.readValue(PreciseCallState.class.getClassLoader());
mNetworkType = in.readInt();
mCallQuality = (CallQuality) in.readValue(CallQuality.class.getClassLoader());
this.mPreciseCallState = in.readParcelable(PreciseCallState.class.getClassLoader());
this.mNetworkType = in.readInt();
this.mCallQuality = in.readParcelable(CallQuality.class.getClassLoader());
}
// getters
@@ -134,9 +133,9 @@ public class CallAttributes implements Parcelable {
* {@link Parcelable#writeToParcel}
*/
public void writeToParcel(Parcel dest, @Parcelable.WriteFlags int flags) {
mPreciseCallState.writeToParcel(dest, flags);
dest.writeParcelable(mPreciseCallState, flags);
dest.writeInt(mNetworkType);
mCallQuality.writeToParcel(dest, flags);
dest.writeParcelable(mCallQuality, flags);
}
public static final Parcelable.Creator<CallAttributes> CREATOR = new Parcelable.Creator() {