Add rename download label and delete download label
This commit is contained in:
1 parent
a55b5a84d5
commit
29d360f8ec
13 files changed
+356
-10
No files matched your search
@@ -418,6 +418,11 @@ public class EhDB {
|
||||
return raw;
|
||||
}
|
||||
|
||||
public static synchronized void updateDownloadLabel(DownloadLabelRaw raw) {
|
||||
DownloadLabelDao dao = sDaoSession.getDownloadLabelDao();
|
||||
dao.update(raw);
|
||||
}
|
||||
|
||||
public static synchronized void moveDownloadLabel(int fromPosition, int toPosition) {
|
||||
if (fromPosition == toPosition) {
|
||||
return;
|
||||
@@ -442,4 +447,9 @@ public class EhDB {
|
||||
|
||||
dao.updateInTx(list);
|
||||
}
|
||||
|
||||
public static synchronized void removeDownloadLabel(DownloadLabelRaw raw) {
|
||||
DownloadLabelDao dao = sDaoSession.getDownloadLabelDao();
|
||||
dao.delete(raw);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user