diff options
author | Daniel Oeh <daniel@danielpc.(none)> | 2012-05-30 20:27:33 +0200 |
---|---|---|
committer | Daniel Oeh <daniel@danielpc.(none)> | 2012-05-30 20:27:33 +0200 |
commit | 7944ea0ba4c820f7be5a0be71256fbb5ed05e24c (patch) | |
tree | fbc9bfc31389f926444b8b16659826d607859d83 /src/de/podfetcher/activity/AddFeedActivity.java | |
parent | fcf8881f8ff813b171fbf7d68891affa24201b61 (diff) | |
download | AntennaPod-7944ea0ba4c820f7be5a0be71256fbb5ed05e24c.zip |
Updated DownloadObserver to observe several Downloads
Diffstat (limited to 'src/de/podfetcher/activity/AddFeedActivity.java')
-rw-r--r-- | src/de/podfetcher/activity/AddFeedActivity.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/de/podfetcher/activity/AddFeedActivity.java b/src/de/podfetcher/activity/AddFeedActivity.java index c699f66c0..65202f2a4 100644 --- a/src/de/podfetcher/activity/AddFeedActivity.java +++ b/src/de/podfetcher/activity/AddFeedActivity.java @@ -74,11 +74,12 @@ public class AddFeedActivity extends SherlockActivity { dialog.dismiss(); finish(); } + @Override - protected void onProgressUpdate(Integer... values) { - Integer progr = values[0]; - dialog.setMessage(getContext().getString(getStatusMsg()) - + " (" + progr.toString() + "%)"); + protected void onProgressUpdate(DownloadObserver.DownloadStatus... values) { + DownloadObserver.DownloadStatus progr = values[0]; + dialog.setMessage(getContext().getString(progr.getStatusMsg()) + + " (" + progr.getProgressPercent() + "%)"); } }; dialog.show(); |