Clean up
This commit is contained in:
1 parent
e353bbe4c3
commit
5e6d24f01e
10 files changed
+14
-47
No files matched your search
@@ -602,9 +602,9 @@ public class EhDB {
|
||||
}
|
||||
|
||||
private static <T> boolean copyDao(BasicDao<T> from, BasicDao<T> to) {
|
||||
List<T> list = from.fakeList();
|
||||
List<T> list = from.list();
|
||||
for (T item : list)
|
||||
to.fakeInsert(item);
|
||||
to.insert(item);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -704,7 +704,7 @@ public class EhDB {
|
||||
manager.addDownloadLabel(downloadLabelList);
|
||||
|
||||
// Download dirname
|
||||
List<DownloadDirname> downloadDirnameList = oldRoomDatabase.downloadDirnameDao().fakeList();
|
||||
List<DownloadDirname> downloadDirnameList = oldRoomDatabase.downloadDirnameDao().list();
|
||||
for (DownloadDirname dirname : downloadDirnameList) {
|
||||
putDownloadDirname(dirname.getGid(), dirname.getDirname());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user