mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-18 06:57:28 +01:00
Minor changes
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user