Fix deprecated funcs

Only fix kotlin code, because JAVA SUCKS
This commit is contained in:
tarsin committed 2023-02-01 15:07:13 +08:00
1 parent 3db6cc1a1c
commit fafe25fee4
9 files changed
+29 -12

No files matched your search

@@ -0,0 +1,8 @@
package com.hippo.util
import android.os.Bundle
import androidx.core.os.BundleCompat
inline fun <reified T> Bundle.getParcelableCompat(key: String?): T? {
return BundleCompat.getParcelable(this, key, T::class.java)
}