diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2013-08-25 15:15:58 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2013-08-25 15:15:58 +0200 |
commit | 307fda7ca91fdc22078b84fce738c01e5cdf094b (patch) | |
tree | 4e86fc341ee3383147950704b5ec69c1975ca312 /src/de | |
parent | b92b6bd421d11a1124023af6c6595662f963d316 (diff) | |
download | AntennaPod-307fda7ca91fdc22078b84fce738c01e5cdf094b.zip |
Reader was closed before importWorker was done
Diffstat (limited to 'src/de')
-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) |