Fix ZoomableImageDialog. isFoldableOrLarge already takes into account the orientation.

This commit is contained in:
KotlinGeekDev
2024-08-17 17:07:43 +01:00
parent 26a12f2dbe
commit 9613afb7ea

View File

@@ -230,7 +230,7 @@ fun ZoomableContentView(
images, images,
onDismiss = { onDismiss = {
dialogOpen = false dialogOpen = false
if (isLandscapeMode) DeviceUtils.changeDeviceOrientation(isLandscapeMode, activity) if (!isFoldableOrLarge) DeviceUtils.changeDeviceOrientation(isLandscapeMode, activity)
}, },
accountViewModel, accountViewModel,
) )