Skip to content

Commit c8331f1

Browse files
fix(mobile): prefer remote orientation (#17177)
* fix(mobile): prefer remote orientation * pr feedback --------- Co-authored-by: shenlong-tanwen <[email protected]>
1 parent 4b4bcd2 commit c8331f1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

mobile/lib/services/asset.service.dart

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 'dart:async';
2-
import 'dart:io';
32

43
import 'package:collection/collection.dart';
54
import 'package:flutter/material.dart';
@@ -389,10 +388,7 @@ class AssetService {
389388
}
390389

391390
Future<double> getAspectRatio(Asset asset) async {
392-
// platform_manager always returns 0 for orientation on iOS, so only prefer it on Android
393-
if (asset.isLocal && Platform.isAndroid) {
394-
await asset.localAsync;
395-
} else if (asset.isRemote) {
391+
if (asset.isRemote) {
396392
asset = await loadExif(asset);
397393
} else if (asset.isLocal) {
398394
await asset.localAsync;

0 commit comments

Comments
 (0)