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

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

View File

@ -3,7 +3,6 @@
<application
android:allowBackup="true"
android:label="@string/app_name"
android:supportsRtl="true">
</application>

View File

@ -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);

View File

@ -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);
}