diff options
author | ByteHamster <info@bytehamster.com> | 2018-01-07 20:19:29 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2018-01-07 20:19:29 +0100 |
commit | dc316074e8b5c408c7dc7eff7b16f9ffd8978ac7 (patch) | |
tree | c5768f14e0c971cbcf6598ccb0555214089c8bf5 /app/src/main | |
parent | 12456b52def840fcfdf35e50cf376f2d79d7c8ba (diff) | |
download | AntennaPod-dc316074e8b5c408c7dc7eff7b16f9ffd8978ac7.zip |
Simplified onActivityResult
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/ImportExportActivity.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/activity/ImportExportActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/ImportExportActivity.java index 01fcfe83d..6a97adcc3 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/ImportExportActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/ImportExportActivity.java @@ -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); } } |