修复:解决google play的图片和视频权限要求
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
package uts.sdk.modules.uniChooseSystemImage
|
||||
|
||||
import android.os.Parcel
|
||||
import android.os.Parcelable
|
||||
import android.os.Parcelable.Creator
|
||||
|
||||
class Media : Parcelable {
|
||||
var type: Int
|
||||
var path: String?
|
||||
|
||||
constructor(type: Int, path: String?) {
|
||||
this.type = type
|
||||
this.path = path
|
||||
}
|
||||
|
||||
protected constructor(`in`: Parcel) {
|
||||
type = `in`.readInt()
|
||||
path = `in`.readString()
|
||||
}
|
||||
|
||||
override fun describeContents(): Int {
|
||||
return 0
|
||||
}
|
||||
|
||||
override fun writeToParcel(dest: Parcel, flags: Int) {
|
||||
dest.writeInt(type)
|
||||
dest.writeString(path)
|
||||
}
|
||||
|
||||
companion object {
|
||||
@JvmField
|
||||
val CREATOR: Creator<Media> = object : Creator<Media> {
|
||||
override fun createFromParcel(`in`: Parcel): Media {
|
||||
return Media(`in`)
|
||||
}
|
||||
|
||||
override fun newArray(size: Int): Array<Media?> {
|
||||
return arrayOfNulls(size)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user