From 9613afb7eafaf8a258b3d05acc227bdf33595f8f Mon Sep 17 00:00:00 2001 From: KotlinGeekDev Date: Sat, 17 Aug 2024 17:07:43 +0100 Subject: [PATCH] Fix ZoomableImageDialog. isFoldableOrLarge already takes into account the orientation. --- .../vitorpamplona/amethyst/ui/components/ZoomableContentView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentView.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentView.kt index b6e776f23..7f36ad41c 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentView.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentView.kt @@ -230,7 +230,7 @@ fun ZoomableContentView( images, onDismiss = { dialogOpen = false - if (isLandscapeMode) DeviceUtils.changeDeviceOrientation(isLandscapeMode, activity) + if (!isFoldableOrLarge) DeviceUtils.changeDeviceOrientation(isLandscapeMode, activity) }, accountViewModel, )