Document h4ck

This commit is contained in:
Vishnu Mohandas 2020-10-25 05:10:53 +05:30
parent 6cabe8c21a
commit 7fe8f9fa40

View file

@ -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);