mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Check for locationPermission in uploadBegins()
This commit is contained in:
parent
5102507fc8
commit
26df8894d6
1 changed files with 5 additions and 1 deletions
|
|
@ -103,8 +103,12 @@ public class ShareActivity
|
|||
}
|
||||
|
||||
private void uploadBegins() {
|
||||
if (locationPermission) {
|
||||
getFileMetadata(true);
|
||||
} else {
|
||||
getFileMetadata(false);
|
||||
}
|
||||
|
||||
getFileMetadata(true);
|
||||
Toast startingToast = Toast.makeText(getApplicationContext(), R.string.uploading_started, Toast.LENGTH_LONG);
|
||||
startingToast.show();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue