Use `when` instead of `else if` in `Activity.kt`
This commit is contained in:
parent
f2c8b0828d
commit
9f6ba77f98
|
@ -108,10 +108,9 @@ fun CheckFeatureLocked(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LaunchedEffect(isOrWasThankYouInstalled) {
|
LaunchedEffect(isOrWasThankYouInstalled) {
|
||||||
if (!skipCheck && !isOrWasThankYouInstalled) {
|
when {
|
||||||
featureLockedAlertDialogState.show()
|
!skipCheck && !isOrWasThankYouInstalled -> featureLockedAlertDialogState.show()
|
||||||
} else if (isOrWasThankYouInstalled) {
|
isOrWasThankYouInstalled -> featureLockedAlertDialogState.hide()
|
||||||
featureLockedAlertDialogState.hide()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue