Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Rename variable to a more suitable one (keeping column name for backwards compatibility)

Cette révision appartient à :
inorichi 2015-12-02 10:48:08 +01:00
Parent 68f1e5f4bb
révision 96f6e28c68
3 fichiers modifiés avec 5 ajouts et 6 suppressions

Voir le fichier

@ -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;

Voir le fichier

@ -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 + ");";

Voir le fichier

@ -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();