Inline `handlePermissionResult`

This commit is contained in:
Ensar Sarajčić 2023-10-13 11:24:53 +02:00
parent dabdfdcd7d
commit e190cac2a3
1 changed files with 1 additions and 5 deletions

View File

@ -336,11 +336,7 @@ class MainActivity : ComponentActivity() {
}
}
private fun getPermissionResultHandler(isSos: Boolean): (Boolean) -> Unit = {
handlePermissionResult(isSos, it)
}
private fun handlePermissionResult(isSos: Boolean, granted: Boolean) {
private fun getPermissionResultHandler(isSos: Boolean): (Boolean) -> Unit = { granted ->
if (granted) {
cameraPermissionGranted(isSos)
} else {