Simplified onActivityResult

This commit is contained in:
ByteHamster 2018-01-07 20:19:29 +01:00
parent 12456b52de
commit dc316074e8
1 changed files with 1 additions and 2 deletions

View File

@ -94,12 +94,11 @@ public class ImportExportActivity extends AppCompatActivity {
if (resultCode != RESULT_OK || resultData == null) {
return;
}
Uri uri = resultData.getData();
if (requestCode == REQUEST_CODE_RESTORE) {
Uri uri = resultData.getData();
restoreFrom(uri);
} else if (requestCode == REQUEST_CODE_BACKUP_DOCUMENT) {
Uri uri = resultData.getData();
backupToDocument(uri);
}
}