Fix crash
This commit is contained in:
parent
23230ddeb7
commit
1d4bf3ec34
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
package eu.kanade.tachiyomi.ui.source.browse
|
package eu.kanade.tachiyomi.ui.source.browse
|
||||||
|
|
||||||
|
import android.app.Activity
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import com.bumptech.glide.Glide
|
import com.bumptech.glide.Glide
|
||||||
|
@ -56,6 +57,7 @@ class BrowseSourceGridHolder(
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun setImage(manga: Manga) {
|
override fun setImage(manga: Manga) {
|
||||||
|
if ((view.context as? Activity)?.isDestroyed == true) return
|
||||||
if (manga.thumbnail_url == null)
|
if (manga.thumbnail_url == null)
|
||||||
Glide.with(view.context).clear(cover_thumbnail)
|
Glide.with(view.context).clear(cover_thumbnail)
|
||||||
else {
|
else {
|
||||||
|
|
Reference in a new issue