Merge pull request #12044 from TeamNewPipe/android-auto

Add support for Android Auto *(season 2)*
This commit is contained in:
Stypox 2025-03-21 11:21:58 +01:00 committed by GitHub
commit 196c27792b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
27 changed files with 1199 additions and 114 deletions

View file

@ -7,3 +7,16 @@ import androidx.core.os.BundleCompat
inline fun <reified T : Parcelable> Bundle.parcelableArrayList(key: String?): ArrayList<T>? {
return BundleCompat.getParcelableArrayList(this, key, T::class.java)
}
fun Bundle?.toDebugString(): String {
if (this == null) {
return "null"
}
val string = StringBuilder("Bundle{")
for (key in this.keySet()) {
@Suppress("DEPRECATION") // we want this[key] to return items of any type
string.append(" ").append(key).append(" => ").append(this[key]).append(";")
}
string.append(" }")
return string.toString()
}