소스 검색

Document h4ck

Vishnu Mohandas 4 년 전
부모
커밋
7fe8f9fa40
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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);