Tidy onRequestPermissionsResult

This commit is contained in:
misaochan 2018-06-23 20:11:00 +10:00
parent 4340d655c4
commit 798bcbad7f

View file

@ -381,14 +381,6 @@ public class ShareActivity
@Override @Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
switch (requestCode) { 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 // Storage (from submit button) - this needs to be separate from (1) because only the
// submit button should bring user to next screen // submit button should bring user to next screen
case REQUEST_PERM_ON_SUBMIT_STORAGE: { case REQUEST_PERM_ON_SUBMIT_STORAGE: {