mirror of
https://github.com/immich-app/immich.git
synced 2025-06-20 17:03:14 +02:00
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>
This commit is contained in:
parent
4b4bcd23f4
commit
c8331f111f
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue