Insert two dummy mangas

This commit is contained in:
inorichi 2015-09-29 00:09:30 +02:00
parent d47e469665
commit 59fa396eeb
2 changed files with 2 additions and 3 deletions

View File

@ -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 {

View File

@ -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();
}
}