mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
fix: Autofill pending intent bypass #2238
This commit is contained in:
@@ -82,6 +82,13 @@ inline fun <reified E : Parcelable> Bundle.getParcelableList(key: String?): Muta
|
||||
else -> @Suppress("DEPRECATION", "UNCHECKED_CAST") (getParcelableArray(key) as? Array<E>)?.toMutableList()
|
||||
}
|
||||
|
||||
inline fun <reified T : Enum<T>> Bundle.putEnum(key: String?, value: T?) =
|
||||
putString(key, value?.name)
|
||||
|
||||
inline fun <reified T : Enum<T>> Bundle.getEnum(key: String?): T? {
|
||||
return getString(key)?.let { enumValueOf<T>(it) }
|
||||
}
|
||||
|
||||
// -------- Parcel --------
|
||||
|
||||
inline fun <reified T : Parcelable> Parcel.readParcelableCompat(): T? = when {
|
||||
|
||||
Reference in New Issue
Block a user