mirror of
https://github.com/ente-io/ente.git
synced 2025-05-27 13:09:56 +00:00
## Description - Fixes corrupt files (missing GPS data) that were uploaded due to [this issue](https://github.com/ente-io/ente/pull/1261) - Refactor ## Tests Tested and working - Uploaded two file from a build that has missing permission for `ACCESS_MEDIA_LOCATION` and GPS data is missing. - Created a new build with changes in this PR. - Deleted the file from device. - Remote file has GPS data when checked from file info. --------- Co-authored-by: Neeraj Gupta <254676+ua741@users.noreply.github.com>
13 lines
337 B
Dart
13 lines
337 B
Dart
import "package:photo_manager/photo_manager.dart";
|
|
|
|
Future<PermissionState> requestPhotoMangerPermissions() {
|
|
return PhotoManager.requestPermissionExtend(
|
|
requestOption: const PermissionRequestOption(
|
|
androidPermission: AndroidPermission(
|
|
type: RequestType.common,
|
|
mediaLocation: true,
|
|
),
|
|
),
|
|
);
|
|
}
|