We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c52c04 commit 6f2853fCopy full SHA for 6f2853f
sample/app/src/main/java/com/hoc081098/channeleventbus/sample/android/common/SafeSavedStateHandle.kt
@@ -11,7 +11,7 @@ class SavedStateHandleKey<T>(
11
)
12
13
inline fun <T> SavedStateHandle.safeGet(key: SavedStateHandleKey<T>): T {
14
- return if (contains(key.key)) {
+ return if (key.key in this) {
15
@Suppress("UNCHECKED_CAST", "RemoveExplicitTypeArguments")
16
get<T>(key.key) as T
17
} else {
0 commit comments