Rename variable to a more suitable one (keeping column name for backwards compatibility)
Cette révision appartient à :
Parent
68f1e5f4bb
révision
96f6e28c68
3 fichiers modifiés avec 5 ajouts et 6 suppressions
|
@ -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();
|
||||
|
|
Référencer dans un nouveau ticket