Add clear download path cache

This commit is contained in:
seven332 committed 2016-03-18 20:28:24 +08:00
1 parent e97c82dbd7
commit 2aadad487e
8 files changed
+119 -30

No files matched your search

@@ -364,6 +364,11 @@ public class EhDB {
dao.deleteByKey(gid);
}
public static synchronized void clearDownloadDirname() {
DownloadDirnameDao dao = sDaoSession.getDownloadDirnameDao();
dao.deleteAll();
}
@NonNull
public static synchronized List<DownloadLabel> getAllDownloadLabelList() {
DownloadLabelDao dao = sDaoSession.getDownloadLabelDao();