mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2025-01-11 10:19:22 +01:00
Fix crash
This commit is contained in:
parent
23230ddeb7
commit
1d4bf3ec34
@ -1,5 +1,6 @@
|
||||
package eu.kanade.tachiyomi.ui.source.browse
|
||||
|
||||
import android.app.Activity
|
||||
import android.view.View
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import com.bumptech.glide.Glide
|
||||
@ -56,6 +57,7 @@ class BrowseSourceGridHolder(
|
||||
}
|
||||
|
||||
override fun setImage(manga: Manga) {
|
||||
if ((view.context as? Activity)?.isDestroyed == true) return
|
||||
if (manga.thumbnail_url == null)
|
||||
Glide.with(view.context).clear(cover_thumbnail)
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user