mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-03 23:58:55 +01:00 
			
		
		
		
	Fix a few crashes
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user