mirror of https://github.com/TeamNewPipe/NewPipe
10 lines
293 B
Kotlin
10 lines
293 B
Kotlin
|
package org.schabi.newpipe.ktx
|
||
|
|
||
|
import android.os.Bundle
|
||
|
import android.os.Parcelable
|
||
|
import androidx.core.os.BundleCompat
|
||
|
|
||
|
inline fun <reified T : Parcelable> Bundle.parcelableArrayList(key: String?): ArrayList<T>? {
|
||
|
return BundleCompat.getParcelableArrayList(this, key, T::class.java)
|
||
|
}
|