Browse Source

Document h4ck

Vishnu Mohandas 4 years ago
parent
commit
7fe8f9fa40
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lib/utils/file_uploader.dart

+ 1 - 0
lib/utils/file_uploader.dart

@@ -94,6 +94,7 @@ class FileUploader {
     String thumbnailObjectKey =
         await putFile(thumbnailUploadURL, io.File(encryptedThumbnailPath));
 
+    // h4ck to fetch location data if missing (thank you Android Q+) lazily only during uploads
     if (file.location.latitude == 0 && file.location.longitude == 0) {
       final latLong = await (await file.getAsset()).latlngAsync();
       file.location = Location(latLong.latitude, latLong.longitude);