From 59fa396eeb66897b5347ce56d37d6908e6156c5e Mon Sep 17 00:00:00 2001 From: inorichi Date: Tue, 29 Sep 2015 00:09:30 +0200 Subject: [PATCH] Insert two dummy mangas --- .../java/eu/kanade/mangafeed/data/helpers/DatabaseHelper.java | 1 - .../java/eu/kanade/mangafeed/data/managers/MangaManager.java | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/kanade/mangafeed/data/helpers/DatabaseHelper.java b/app/src/main/java/eu/kanade/mangafeed/data/helpers/DatabaseHelper.java index 1c02f22ab..afa07905e 100644 --- a/app/src/main/java/eu/kanade/mangafeed/data/helpers/DatabaseHelper.java +++ b/app/src/main/java/eu/kanade/mangafeed/data/helpers/DatabaseHelper.java @@ -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 { diff --git a/app/src/main/java/eu/kanade/mangafeed/data/managers/MangaManager.java b/app/src/main/java/eu/kanade/mangafeed/data/managers/MangaManager.java index 8d9477ad9..2ac56abe7 100644 --- a/app/src/main/java/eu/kanade/mangafeed/data/managers/MangaManager.java +++ b/app/src/main/java/eu/kanade/mangafeed/data/managers/MangaManager.java @@ -11,7 +11,6 @@ import eu.kanade.mangafeed.data.tables.MangasTable; import rx.Observable; public class MangaManager extends BaseManager { - List mangass; public MangaManager(StorIOSQLite db) { super(db); @@ -28,7 +27,6 @@ public class MangaManager extends BaseManager { } public Observable 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(); } }