diff --git a/android/app/src/main/java/deckers/thibault/aves/channel/calls/ImageDecodeTask.java b/android/app/src/main/java/deckers/thibault/aves/channel/calls/ImageDecodeTask.java index 7393c983d..872073b71 100644 --- a/android/app/src/main/java/deckers/thibault/aves/channel/calls/ImageDecodeTask.java +++ b/android/app/src/main/java/deckers/thibault/aves/channel/calls/ImageDecodeTask.java @@ -125,7 +125,7 @@ public class ImageDecodeTask extends AsyncTask canEdit && (mimeType == MimeTypes.jpeg || mimeType == MimeTypes.png); - bool get rotated => ((isVideo && isCatalogued) ? _catalogMetadata.videoRotation : orientationDegrees) % 180 == 90; + bool get portrait => ((isVideo && isCatalogued) ? _catalogMetadata.videoRotation : orientationDegrees) % 180 == 90; double get displayAspectRatio { if (width == 0 || height == 0) return 1; - return rotated ? height / width : width / height; + return portrait ? height / width : width / height; } - Size get displaySize => rotated ? Size(height.toDouble(), width.toDouble()) : Size(width.toDouble(), height.toDouble()); + Size get displaySize => portrait ? Size(height.toDouble(), width.toDouble()) : Size(width.toDouble(), height.toDouble()); int get megaPixels => width != null && height != null ? (width * height / 1000000).round() : null; diff --git a/lib/widgets/fullscreen/debug.dart b/lib/widgets/fullscreen/debug.dart index 6e7e4ddac..b819e0767 100644 --- a/lib/widgets/fullscreen/debug.dart +++ b/lib/widgets/fullscreen/debug.dart @@ -103,7 +103,7 @@ class _FullscreenDebugPageState extends State { 'width': '${entry.width}', 'height': '${entry.height}', 'orientationDegrees': '${entry.orientationDegrees}', - 'rotated': '${entry.rotated}', + 'portrait': '${entry.portrait}', 'displayAspectRatio': '${entry.displayAspectRatio}', 'displaySize': '${entry.displaySize}', 'megaPixels': '${entry.megaPixels}',