Minor changes

This commit is contained in:
inorichi
2015-12-02 10:32:16 +01:00
parent aa6dfddffa
commit 68f1e5f4bb
7 changed files with 24 additions and 12 deletions

View File

@@ -10,10 +10,10 @@ import eu.kanade.mangafeed.util.UrlUtil;
public class Chapter {
@StorIOSQLiteColumn(name = ChapterTable.COLUMN_ID, key = true)
public Long id;
public long id;
@StorIOSQLiteColumn(name = ChapterTable.COLUMN_MANGA_ID)
public Long manga_id;
public long manga_id;
@StorIOSQLiteColumn(name = ChapterTable.COLUMN_URL)
public String url;

View File

@@ -10,7 +10,7 @@ import eu.kanade.mangafeed.util.UrlUtil;
public class Manga {
@StorIOSQLiteColumn(name = MangaTable.COLUMN_ID, key = true)
public Long id;
public long id;
@StorIOSQLiteColumn(name = MangaTable.COLUMN_SOURCE)
public int source;

View File

@@ -133,7 +133,7 @@ public class DownloadManager {
private boolean prepareDownload(Download download) {
// If the chapter is already queued, don't add it again
for (Download queuedDownload : queue.get()) {
if (download.chapter.id.equals(queuedDownload.chapter.id))
if (download.chapter.id == queuedDownload.chapter.id)
return true;
}

View File

@@ -54,6 +54,6 @@ public class Download {
private void notifyStatus() {
if (statusSubject != null)
statusSubject.onNext(this);
EventBus.getDefault().post(new DownloadStatusEvent(chapter.id, status));
EventBus.getDefault().post(new DownloadStatusEvent(chapter, status));
}
}