Skip to content

Commit

Permalink
Fix #72 by avoiding notifying failure then success
Browse files Browse the repository at this point in the history
  • Loading branch information
Olmo Gallegos committed Aug 28, 2018
1 parent 77eb8b7 commit 0830684
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,12 @@ public void run() {
urlConnection.disconnect();
fileOutput.close();

notifySuccessOnUiThread(url, destinationPath);
} catch (MalformedURLException e) {
notifyFailureOnUiThread(e);
} catch (IOException e) {
notifyFailureOnUiThread(e);
}

notifySuccessOnUiThread(url, destinationPath);
}
}).start();
}
Expand Down

0 comments on commit 0830684

Please sign in to comment.