mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Tidy onRequestPermissionsResult
This commit is contained in:
parent
4340d655c4
commit
798bcbad7f
1 changed files with 0 additions and 8 deletions
|
|
@ -381,14 +381,6 @@ public class ShareActivity
|
|||
@Override
|
||||
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
|
||||
switch (requestCode) {
|
||||
case REQUEST_PERM_ON_CREATE_LOCATION: {
|
||||
if (grantResults.length >= 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
|
||||
locationPermitted = true;
|
||||
checkIfFileExists();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
// Storage (from submit button) - this needs to be separate from (1) because only the
|
||||
// submit button should bring user to next screen
|
||||
case REQUEST_PERM_ON_SUBMIT_STORAGE: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue