From aad5aaa930b0bd89c550ef2c5d1b2fceba75b091 Mon Sep 17 00:00:00 2001 From: David Kaspar Date: Sun, 3 Nov 2024 11:48:12 +0000 Subject: [PATCH] rename inner it to avoid shadowed it --- .../amethyst/ui/components/ZoomableContentDialog.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentDialog.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentDialog.kt index e48ef059e..0ce50701c 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentDialog.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentDialog.kt @@ -324,8 +324,8 @@ private fun saveMediaToGallery( onSuccess = { accountViewModel.toast(success, success) }, - onError = { - accountViewModel.toast(failure, null, it) + onError = { innerIt -> + accountViewModel.toast(failure, null, innerIt) }, ) } @@ -379,7 +379,7 @@ private fun RenderImageOrVideo( onToggleControllerVisibility: (() -> Unit)? = null, accountViewModel: AccountViewModel, ) { - val automaticallyStartPlayback = remember { mutableStateOf(true) } + val automaticallyStartPlayback = remember { mutableStateOf(true) } val contentScale = if (isFiniteHeight) { ContentScale.Fit