mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-17 13:09:17 +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)
|
@StorIOSQLiteColumn(name = MangaTable.COLUMN_VIEWER)
|
||||||
public int viewer;
|
public int viewer;
|
||||||
|
|
||||||
@StorIOSQLiteColumn(name = MangaTable.COLUMN_CHAPTER_ORDER)
|
@StorIOSQLiteColumn(name = MangaTable.COLUMN_CHAPTER_FLAGS)
|
||||||
public int chapter_order;
|
public int chapter_flags;
|
||||||
|
|
||||||
public int unread;
|
public int unread;
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ public class MangaTable {
|
|||||||
public static final String COLUMN_VIEWER = "viewer";
|
public static final String COLUMN_VIEWER = "viewer";
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
public static final String COLUMN_CHAPTER_ORDER = "chapter_order";
|
public static final String COLUMN_CHAPTER_FLAGS = "chapter_order";
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
public static final String COLUMN_UNREAD = "unread";
|
public static final String COLUMN_UNREAD = "unread";
|
||||||
@ -79,7 +79,7 @@ public class MangaTable {
|
|||||||
+ COLUMN_LAST_UPDATE + " LONG, "
|
+ COLUMN_LAST_UPDATE + " LONG, "
|
||||||
+ COLUMN_INITIALIZED + " BOOLEAN NOT NULL, "
|
+ COLUMN_INITIALIZED + " BOOLEAN NOT NULL, "
|
||||||
+ COLUMN_VIEWER + " INTEGER 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 + ");";
|
+ "CREATE INDEX " + TABLE + "_" + COLUMN_URL + "_index ON " + TABLE + "(" + COLUMN_URL + ");";
|
||||||
|
|
||||||
|
@ -168,8 +168,7 @@ public class ChaptersPresenter extends BasePresenter<ChaptersFragment> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void checkIsChapterDownloaded(Chapter chapter) {
|
||||||
public void checkIsChapterDownloaded(Chapter chapter) {
|
|
||||||
for (Download download : downloadManager.getQueue().get()) {
|
for (Download download : downloadManager.getQueue().get()) {
|
||||||
if (chapter.id == download.chapter.id) {
|
if (chapter.id == download.chapter.id) {
|
||||||
chapter.status = download.getStatus();
|
chapter.status = download.getStatus();
|
||||||
|
Loading…
Reference in New Issue
Block a user