This commit is contained in:
laoyuyu
2019-12-23 21:00:02 +08:00
parent 0cb5d3e684
commit a524fd3e5a
5 changed files with 17 additions and 7 deletions

View File

@@ -1,4 +1,6 @@
## 开发日志
+ v_3.8.2
- fix bug https://github.com/AriaLyy/Aria/issues/573
+ v_3.8.1 (2019/12/22)
- 修复一个表创建失败的问题 https://github.com/AriaLyy/Aria/issues/570
- 修复一个非分块模式下导致下载失败的问题 https://github.com/AriaLyy/Aria/issues/571

View File

@@ -422,13 +422,19 @@ class DelegateFind extends AbsDelegate {
private <T extends DbEntity> List<T> exeNormalDataSql(SQLiteDatabase db, Class<T> clazz,
String sql, String[] selectionArgs) {
SqlUtil.checkTable(db, clazz);
String[] temp = new String[selectionArgs.length];
int i = 0;
for (String arg : selectionArgs) {
temp[i] = SqlUtil.encodeStr(arg);
i++;
Cursor cursor;
if (selectionArgs != null) {
String[] temp = new String[selectionArgs.length];
int i = 0;
for (String arg : selectionArgs) {
temp[i] = SqlUtil.encodeStr(arg);
i++;
}
cursor = db.rawQuery(sql, temp);
} else {
cursor = db.rawQuery(sql, null);
}
Cursor cursor = db.rawQuery(sql, temp);
List<T> data = cursor.getCount() > 0 ? newInstanceEntity(clazz, cursor) : null;
closeCursor(cursor);
return data;

View File

@@ -28,7 +28,6 @@ import java.lang.ref.SoftReference;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Proxy;
import java.util.List;
/**

View File

@@ -135,6 +135,8 @@ protected void onCreate(Bundle savedInstanceState) {
### [文档地址](https://aria.laoyuyu.me/aria_doc/)
### QQ群524329160
### 版本日志
+ v_3.8.1 (2019/12/22)

View File

@@ -53,6 +53,7 @@ public class HttpUploadActivity extends BaseActivity<ActivityUploadBinding> {
@Override protected void init(Bundle savedInstanceState) {
setTile("D_HTTP 上传");
super.init(savedInstanceState);
Aria.upload(this).getTaskList();
mEntity = Aria.upload(this).getFirstUploadEntity(FILE_PATH);