Added a comment

This commit is contained in:
ashilkn 2023-04-17 10:31:09 +05:30
parent 694bedf00a
commit 52c19697bb

View file

@ -157,6 +157,8 @@ Future<void> _decorateEnteFileData(ente.File file, AssetEntity asset) async {
(file.location!.latitude == 0 && file.location!.longitude == 0)) {
LatLng latLong = await asset.latlngAsync();
if ((latLong.latitude ?? 0) == 0 && (latLong.longitude ?? 0) == 0) {
//In some devices, asset.latlngAsync() doesn't fetch the location data even
//if it is present. In such cases, extract location data from EXIF.
try {
final locationData = (await gpsDataFromExif(file)).toLocationObj();
latLong = LatLng(