diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryGridHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryGridHolder.kt index 75bce8a219..22d8216c8c 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryGridHolder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryGridHolder.kt @@ -1,5 +1,6 @@ package eu.kanade.tachiyomi.ui.library +import android.app.Activity import android.view.Gravity import android.view.View import android.widget.FrameLayout @@ -78,6 +79,7 @@ class LibraryGridHolder( } private fun setCover(manga: Manga, id: Long) { + if ((adapter.recyclerView.context as? Activity)?.isDestroyed == true) return GlideApp.with(adapter.recyclerView.context).load(manga) .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC) .signature(ObjectKey(MangaImpl.getLastCoverFetch(id).toString()))