mirror of
https://git.mihon.tech/mihonapp/mihon
synced 2024-11-21 20:55:41 +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.MangaStorIOSQLiteGetResolver;
|
||||||
import eu.kanade.mangafeed.data.models.MangaStorIOSQLitePutResolver;
|
import eu.kanade.mangafeed.data.models.MangaStorIOSQLitePutResolver;
|
||||||
import eu.kanade.mangafeed.data.managers.MangaManager;
|
import eu.kanade.mangafeed.data.managers.MangaManager;
|
||||||
import eu.kanade.mangafeed.data.tables.ChaptersTable;
|
|
||||||
|
|
||||||
public class DatabaseHelper {
|
public class DatabaseHelper {
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,6 @@ import eu.kanade.mangafeed.data.tables.MangasTable;
|
||||||
import rx.Observable;
|
import rx.Observable;
|
||||||
|
|
||||||
public class MangaManager extends BaseManager {
|
public class MangaManager extends BaseManager {
|
||||||
List<Manga> mangass;
|
|
||||||
|
|
||||||
public MangaManager(StorIOSQLite db) {
|
public MangaManager(StorIOSQLite db) {
|
||||||
super(db);
|
super(db);
|
||||||
|
@ -28,7 +27,6 @@ public class MangaManager extends BaseManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Observable<PutResult> insert(Manga manga) {
|
public Observable<PutResult> insert(Manga manga) {
|
||||||
|
|
||||||
return db.put()
|
return db.put()
|
||||||
.object(manga)
|
.object(manga)
|
||||||
.prepare()
|
.prepare()
|
||||||
|
@ -46,6 +44,8 @@ public class MangaManager extends BaseManager {
|
||||||
m.thumbnail_url="http://example.com/pic.png";
|
m.thumbnail_url="http://example.com/pic.png";
|
||||||
m.title="One Piece";
|
m.title="One Piece";
|
||||||
insert(m).subscribe();
|
insert(m).subscribe();
|
||||||
|
m.title="Berserk";
|
||||||
|
insert(m).subscribe();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue