From c8331f111f6dcb43719c772e3c70b3657ee03410 Mon Sep 17 00:00:00 2001
From: shenlong <139912620+shenlong-tanwen@users.noreply.github.com>
Date: Fri, 28 Mar 2025 20:54:31 +0530
Subject: [PATCH] fix(mobile): prefer remote orientation (#17177)

* fix(mobile): prefer remote orientation

* pr feedback

---------

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
---
 mobile/lib/services/asset.service.dart | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/mobile/lib/services/asset.service.dart b/mobile/lib/services/asset.service.dart
index 2894f5a7de..92f04e2304 100644
--- a/mobile/lib/services/asset.service.dart
+++ b/mobile/lib/services/asset.service.dart
@@ -1,5 +1,4 @@
 import 'dart:async';
-import 'dart:io';
 
 import 'package:collection/collection.dart';
 import 'package:flutter/material.dart';
@@ -389,10 +388,7 @@ class AssetService {
   }
 
   Future<double> getAspectRatio(Asset asset) async {
-    // platform_manager always returns 0 for orientation on iOS, so only prefer it on Android
-    if (asset.isLocal && Platform.isAndroid) {
-      await asset.localAsync;
-    } else if (asset.isRemote) {
+    if (asset.isRemote) {
       asset = await loadExif(asset);
     } else if (asset.isLocal) {
       await asset.localAsync;