rename inner it to avoid shadowed it

This commit is contained in:
David Kaspar
2024-11-03 11:48:12 +00:00
parent b877e4105a
commit aad5aaa930

View File

@@ -324,8 +324,8 @@ private fun saveMediaToGallery(
onSuccess = { onSuccess = {
accountViewModel.toast(success, success) accountViewModel.toast(success, success)
}, },
onError = { onError = { innerIt ->
accountViewModel.toast(failure, null, it) accountViewModel.toast(failure, null, innerIt)
}, },
) )
} }
@@ -379,7 +379,7 @@ private fun RenderImageOrVideo(
onToggleControllerVisibility: (() -> Unit)? = null, onToggleControllerVisibility: (() -> Unit)? = null,
accountViewModel: AccountViewModel, accountViewModel: AccountViewModel,
) { ) {
val automaticallyStartPlayback = remember { mutableStateOf<Boolean>(true) } val automaticallyStartPlayback = remember { mutableStateOf(true) }
val contentScale = val contentScale =
if (isFiniteHeight) { if (isFiniteHeight) {
ContentScale.Fit ContentScale.Fit