diff options
Diffstat (limited to 'src/de/danoeh/antennapod')
-rw-r--r-- | src/de/danoeh/antennapod/activity/OpmlImportFromPathActivity.java | 9 | ||||
-rw-r--r-- | src/de/danoeh/antennapod/asynctask/OpmlImportWorker.java | 7 |
2 files changed, 7 insertions, 9 deletions
diff --git a/src/de/danoeh/antennapod/activity/OpmlImportFromPathActivity.java b/src/de/danoeh/antennapod/activity/OpmlImportFromPathActivity.java index 2aafb46db..ece78006f 100644 --- a/src/de/danoeh/antennapod/activity/OpmlImportFromPathActivity.java +++ b/src/de/danoeh/antennapod/activity/OpmlImportFromPathActivity.java @@ -137,15 +137,6 @@ public class OpmlImportFromPathActivity extends OpmlImportBaseActivity { } catch (FileNotFoundException e) { Log.d(TAG, "File not found which really should be there"); // this should never happen as it is a file we have just chosen - } finally { - if (mReader != null) { - try { - mReader.close(); - } catch (IOException ioe) { - Log.w(TAG, "IOException while importing OPML: " + - ioe.getMessage()); - } - } } } diff --git a/src/de/danoeh/antennapod/asynctask/OpmlImportWorker.java b/src/de/danoeh/antennapod/asynctask/OpmlImportWorker.java index 5af06895f..4816c25ab 100644 --- a/src/de/danoeh/antennapod/asynctask/OpmlImportWorker.java +++ b/src/de/danoeh/antennapod/asynctask/OpmlImportWorker.java @@ -64,6 +64,13 @@ public class OpmlImportWorker extends @Override protected void onPostExecute(ArrayList<OpmlElement> result) { + if (mReader != null) { + try { + mReader.close(); + } catch (IOException e) { + e.printStackTrace(); + } + } progDialog.dismiss(); if (exception != null) { if (AppConfig.DEBUG) |