mirror of
https://git.mihon.tech/mihonapp/mihon
synced 2024-11-21 12:45:44 +03:00
Insert two dummy mangas
This commit is contained in:
parent
d47e469665
commit
59fa396eeb
2 changed files with 2 additions and 3 deletions
|
@ -16,7 +16,6 @@ import eu.kanade.mangafeed.data.models.MangaStorIOSQLiteDeleteResolver;
|
|||
import eu.kanade.mangafeed.data.models.MangaStorIOSQLiteGetResolver;
|
||||
import eu.kanade.mangafeed.data.models.MangaStorIOSQLitePutResolver;
|
||||
import eu.kanade.mangafeed.data.managers.MangaManager;
|
||||
import eu.kanade.mangafeed.data.tables.ChaptersTable;
|
||||
|
||||
public class DatabaseHelper {
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@ import eu.kanade.mangafeed.data.tables.MangasTable;
|
|||
import rx.Observable;
|
||||
|
||||
public class MangaManager extends BaseManager {
|
||||
List<Manga> mangass;
|
||||
|
||||
public MangaManager(StorIOSQLite db) {
|
||||
super(db);
|
||||
|
@ -28,7 +27,6 @@ public class MangaManager extends BaseManager {
|
|||
}
|
||||
|
||||
public Observable<PutResult> insert(Manga manga) {
|
||||
|
||||
return db.put()
|
||||
.object(manga)
|
||||
.prepare()
|
||||
|
@ -46,6 +44,8 @@ public class MangaManager extends BaseManager {
|
|||
m.thumbnail_url="http://example.com/pic.png";
|
||||
m.title="One Piece";
|
||||
insert(m).subscribe();
|
||||
m.title="Berserk";
|
||||
insert(m).subscribe();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue