diff --git a/app/src/main/java/eu/kanade/mangafeed/data/database/models/Manga.java b/app/src/main/java/eu/kanade/mangafeed/data/database/models/Manga.java index f17f233c8..c3dfc122f 100644 --- a/app/src/main/java/eu/kanade/mangafeed/data/database/models/Manga.java +++ b/app/src/main/java/eu/kanade/mangafeed/data/database/models/Manga.java @@ -51,8 +51,8 @@ public class Manga { @StorIOSQLiteColumn(name = MangaTable.COLUMN_VIEWER) public int viewer; - @StorIOSQLiteColumn(name = MangaTable.COLUMN_CHAPTER_ORDER) - public int chapter_order; + @StorIOSQLiteColumn(name = MangaTable.COLUMN_CHAPTER_FLAGS) + public int chapter_flags; public int unread; diff --git a/app/src/main/java/eu/kanade/mangafeed/data/database/tables/MangaTable.java b/app/src/main/java/eu/kanade/mangafeed/data/database/tables/MangaTable.java index df6a7f2fe..73b2e4df9 100644 --- a/app/src/main/java/eu/kanade/mangafeed/data/database/tables/MangaTable.java +++ b/app/src/main/java/eu/kanade/mangafeed/data/database/tables/MangaTable.java @@ -50,7 +50,7 @@ public class MangaTable { public static final String COLUMN_VIEWER = "viewer"; @NonNull - public static final String COLUMN_CHAPTER_ORDER = "chapter_order"; + public static final String COLUMN_CHAPTER_FLAGS = "chapter_order"; @NonNull public static final String COLUMN_UNREAD = "unread"; @@ -79,7 +79,7 @@ public class MangaTable { + COLUMN_LAST_UPDATE + " LONG, " + COLUMN_INITIALIZED + " BOOLEAN NOT NULL, " + COLUMN_VIEWER + " INTEGER NOT NULL, " - + COLUMN_CHAPTER_ORDER + " INTEGER NOT NULL" + + COLUMN_CHAPTER_FLAGS + " INTEGER NOT NULL" + ");" + "CREATE INDEX " + TABLE + "_" + COLUMN_URL + "_index ON " + TABLE + "(" + COLUMN_URL + ");"; diff --git a/app/src/main/java/eu/kanade/mangafeed/ui/manga/chapter/ChaptersPresenter.java b/app/src/main/java/eu/kanade/mangafeed/ui/manga/chapter/ChaptersPresenter.java index 459cfe713..5b64c2b50 100644 --- a/app/src/main/java/eu/kanade/mangafeed/ui/manga/chapter/ChaptersPresenter.java +++ b/app/src/main/java/eu/kanade/mangafeed/ui/manga/chapter/ChaptersPresenter.java @@ -168,8 +168,7 @@ public class ChaptersPresenter extends BasePresenter { } } - - public void checkIsChapterDownloaded(Chapter chapter) { + private void checkIsChapterDownloaded(Chapter chapter) { for (Download download : downloadManager.getQueue().get()) { if (chapter.id == download.chapter.id) { chapter.status = download.getStatus();