Parcelable: Use specialized write/create methods where available (KT-20057)

This commit is contained in:
Yan Zhulanow
2017-09-06 23:57:45 +03:00
committed by Yan Zhulanow
parent f6d7a17227
commit 1b688182cd
5 changed files with 104 additions and 26 deletions
@@ -7,4 +7,10 @@ import android.os.IBinder
import android.os.IInterface
@Parcelize
class User(val binder: IBinder, val intf: IInterface?) : Parcelable
class User(
val binder: IBinder,
val binderArray: Array<IBinder>,
val binderList: List<IBinder>,
val binderArrayList: ArrayList<IBinder>, // should be serialized using our strategy, not using Parcel.writeBinderList()
val intf: IInterface?
) : Parcelable