File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
presentation/src/main/java/com/whyranoid/presentation/util Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,10 @@ inline fun <reified T : Serializable> Bundle.getSerializableData(key: String): T
46
46
47
47
inline fun <reified T : Parcelable > Intent.getParcelableData (key : String ): T ? = when {
48
48
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
50
50
}
51
51
52
52
inline fun <reified T : Parcelable > Bundle.getParcelableData (key : String ): T ? = when {
53
53
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
55
55
}
You can’t perform that action at this time.
0 commit comments