Fix pasting soft ap configuration
This commit is contained in:
@@ -61,10 +61,10 @@ fun Parcelable.toByteArray(parcelableFlags: Int = 0) = useParcel { p ->
|
|||||||
p.writeParcelable(this, parcelableFlags)
|
p.writeParcelable(this, parcelableFlags)
|
||||||
p.marshall()
|
p.marshall()
|
||||||
}
|
}
|
||||||
fun <T : Parcelable> ByteArray.toParcelable() = useParcel { p ->
|
inline fun <reified T : Parcelable> ByteArray.toParcelable() = useParcel { p ->
|
||||||
p.unmarshall(this, 0, size)
|
p.unmarshall(this, 0, size)
|
||||||
p.setDataPosition(0)
|
p.setDataPosition(0)
|
||||||
p.readParcelable<T>(javaClass.classLoader)
|
p.readParcelable<T>(T::class.java.classLoader)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun DialogFragment.showAllowingStateLoss(manager: FragmentManager, tag: String? = null) {
|
fun DialogFragment.showAllowingStateLoss(manager: FragmentManager, tag: String? = null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user