Skip to content

Commit ee69a83

Browse files
committed
🐛 오동작하는 함수들 정상 동작하도록 수정
1 parent e39a540 commit ee69a83

File tree

1 file changed

+2
-2
lines changed
  • presentation/src/main/java/com/whyranoid/presentation/util

1 file changed

+2
-2
lines changed

presentation/src/main/java/com/whyranoid/presentation/util/Extensions.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ inline fun <reified T : Serializable> Bundle.getSerializableData(key: String): T
4646

4747
inline fun <reified T : Parcelable> Intent.getParcelableData(key: String): T? = when {
4848
Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU -> getParcelableExtra(key, T::class.java)
49-
else -> @Suppress("DEPRECATION") getSerializableExtra(key) as? T
49+
else -> @Suppress("DEPRECATION") getParcelableExtra(key) as? T
5050
}
5151

5252
inline fun <reified T : Parcelable> Bundle.getParcelableData(key: String): T? = when {
5353
Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU -> getParcelable(key, T::class.java)
54-
else -> @Suppress("DEPRECATION") getSerializable(key) as? T
54+
else -> @Suppress("DEPRECATION") getParcelable(key) as? T
5555
}

0 commit comments

Comments
 (0)