diff --git a/app/src/main/java/de/redno/disabledlauncher/ui/components/Common.kt b/app/src/main/java/de/redno/disabledlauncher/ui/components/Common.kt index c8538c0..5b18308 100644 --- a/app/src/main/java/de/redno/disabledlauncher/ui/components/Common.kt +++ b/app/src/main/java/de/redno/disabledlauncher/ui/components/Common.kt @@ -53,13 +53,13 @@ fun ToolbarComponent( ) { TopAppBar( modifier = modifier, - navigationIcon = if (onBackNavigation != null) { + navigationIcon = onBackNavigation?.let { { - IconButton(onClick = onBackNavigation) { + IconButton(onClick = it) { Icon(Icons.Default.ArrowBack, contentDescription = stringResource(id = R.string.back_icon)) } } - } else null, + }, title = { Text(text = title) }, actions = { onSettingsClick?.let {