任务组bug修复,修复子任务下载完成后重新下载的问题

This commit is contained in:
AriaLyy committed 2017-07-18 16:18:15 +08:00
1 parent b8a86890a7
commit 489f44c0f9
27 files changed
+226 -249

No files matched your search

-1
View File
@@ -3,7 +3,6 @@
<application
android:allowBackup="true"
android:label="@string/app_name"
android:supportsRtl="true">
</application>
@@ -168,6 +168,7 @@ class Configuration {
}
field.setAccessible(true);
String value = properties.getProperty(field.getName());
if (TextUtils.isEmpty(value) || value.equalsIgnoreCase("null")) continue;
Class<?> type = field.getType();
if (type == String.class) {
field.set(this, value);
@@ -110,7 +110,7 @@ public class UploadTask extends AbsNormalTask<UploadEntity> {
saveData(IEntity.STATE_POST_PRE, 0);
}
@Override public void onStart() {
@Override public void onStart(long startLocation) {
sendInState2Target(ISchedulers.START);
saveData(IEntity.STATE_RUNNING, 0);
}