You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-27 23:28:38 +02:00
Ask permission to use geo-location
This commit is contained in:
@ -100,8 +100,8 @@ class ConfigScreenComponent extends BaseScreenComponent {
|
||||
const exportPath = this.state.profileExportPath;
|
||||
const resourcePath = `${exportPath}/resources`;
|
||||
try {
|
||||
const hasPermissions = await checkPermissions(PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE);
|
||||
if (!hasPermissions) {
|
||||
const response = await checkPermissions(PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE);
|
||||
if (response !== PermissionsAndroid.RESULTS.GRANTED) {
|
||||
throw new Error('Permission denied');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user