From 989cbb35d3228861dfb1fc7d3801eae4b6d97b21 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Mon, 19 Aug 2024 11:58:50 -0400 Subject: [PATCH] Disabling landscape rotation on full screen due to portrait videos. --- .../amethyst/ui/components/ZoomableContentView.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 cf3ee362d..13ca3741d 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 @@ -160,9 +160,9 @@ fun ZoomableContentView( nostrUriCallback = content.uri, onDialog = { dialogOpen = true - if (!isFoldableOrLarge) { - DeviceUtils.changeDeviceOrientation(isLandscapeMode, activity) - } + // if (!isFoldableOrLarge) { + // DeviceUtils.changeDeviceOrientation(isLandscapeMode, activity) + // } }, accountViewModel = accountViewModel, ) @@ -200,7 +200,7 @@ fun ZoomableContentView( images, onDismiss = { dialogOpen = false - if (!isFoldableOrLarge) DeviceUtils.changeDeviceOrientation(isLandscapeMode, activity) + // if (!isFoldableOrLarge) DeviceUtils.changeDeviceOrientation(isLandscapeMode, activity) }, accountViewModel, )