mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-06 18:57:26 +01:00
Rename variable to a more suitable one (keeping column name for backwards compatibility)
This commit is contained in:
parent
68f1e5f4bb
commit
96f6e28c68
@ -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;
|
||||
|
||||
|
@ -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 + ");";
|
||||
|
||||
|
@ -168,8 +168,7 @@ public class ChaptersPresenter extends BasePresenter<ChaptersFragment> {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user