Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Fix a few crashes

Cette révision appartient à :
len 2016-07-03 21:04:09 +02:00
Parent 987473df44
révision 81887000a8
3 fichiers modifiés avec 3 ajouts et 3 suppressions

Voir le fichier

@ -11,7 +11,7 @@ class ChapterModel(c: Chapter) : Chapter by c {
get() = download?.status ?: _status
set(value) { _status = value }
var download: Download? = null
@Transient var download: Download? = null
val isDownloaded: Boolean
get() = status == Download.DOWNLOADED

Voir le fichier

@ -62,7 +62,7 @@ class ChaptersPresenter : BasePresenter<ChaptersFragment>() {
/**
* List of chapters of the manga. It's always unfiltered and unsorted.
*/
lateinit var chapters: List<ChapterModel>
var chapters: List<ChapterModel> = emptyList()
private set
/**

Voir le fichier

@ -14,7 +14,7 @@ class RecentChapter(mc: MangaChapter) : Chapter by mc.chapter {
get() = download?.status ?: _status
set(value) { _status = value }
var download: Download? = null
@Transient var download: Download? = null
val isDownloaded: Boolean
get() = status == Download.DOWNLOADED