代码优化,修复广播的一个bug

This commit is contained in:
AriaLyy
2017-05-31 22:31:05 +08:00
parent 9b2e2eb231
commit 6202f0d4e3
17 changed files with 130 additions and 160 deletions

View File

@ -176,7 +176,7 @@ public class DownloadModule extends BaseModule {
String action = intent.getAction();
switch (action) {
case Aria.ACTION_POST_PRE:
DownloadEntity entity = intent.getParcelableExtra(Aria.ENTITY);
DownloadEntity entity = intent.getParcelableExtra(Aria.DOWNLOAD_ENTITY);
len = entity.getFileSize();
L.d(TAG, "download pre");
handler.obtainMessage(SingleTaskActivity.DOWNLOAD_PRE, len).sendToTarget();