diff --git a/mobile/lib/ui/viewer/file/file_details_widget.dart b/mobile/lib/ui/viewer/file/file_details_widget.dart index f6270e914d..b28951431d 100644 --- a/mobile/lib/ui/viewer/file/file_details_widget.dart +++ b/mobile/lib/ui/viewer/file/file_details_widget.dart @@ -11,7 +11,6 @@ import "package:photos/events/people_changed_event.dart"; import "package:photos/generated/l10n.dart"; import 'package:photos/models/file/file.dart'; import 'package:photos/models/file/file_type.dart'; -import "package:photos/models/location/location.dart"; import "package:photos/models/metadata/file_magic.dart"; import "package:photos/services/file_magic_service.dart"; import 'package:photos/theme/ente_theme.dart'; @@ -60,12 +59,9 @@ class _FileDetailsWidgetState extends State { "longRef": null, }; - int? creationTime; - Location? location; - late final StreamSubscription _peopleChangedEvent; - bool _isImage = false; + bool _isImage = false; late int _currentUserID; bool showExifListTile = false; final ValueNotifier hasLocationData = ValueNotifier(false); @@ -126,13 +122,6 @@ class _FileDetailsWidgetState extends State { } final properties = await FFProbeUtil.getProperties(mediaInfo); - location = properties.location; - if (location != null) { - hasLocationData.value = true; - } - creationTime = DateTime.tryParse(properties.creationTime ?? "") - ?.microsecondsSinceEpoch; - setState(() {}); } @@ -165,9 +154,7 @@ class _FileDetailsWidgetState extends State { ); fileDetailsTiles.addAll([ CreationTimeItem( - file.copyWith( - creationTime: creationTime, - ), + file, _currentUserID, ), const FileDetailsDivider(), @@ -206,9 +193,7 @@ class _FileDetailsWidgetState extends State { ? Column( children: [ LocationTagsWidget( - widget.file.copyWith( - location: location, - ), + widget.file, ), const FileDetailsDivider(), ],