Fixing a few more tracepot issues
This commit is contained in:
parent
888bd8c8dd
commit
dcf250fcf3
2 changed files with 8 additions and 3 deletions
|
@ -893,6 +893,7 @@ class LibraryController(
|
|||
}
|
||||
|
||||
override fun canDrag(): Boolean {
|
||||
filter_bottom_sheet ?: return false
|
||||
val filterOff =
|
||||
!filter_bottom_sheet.hasActiveFilters() && !preferences.hideCategories().getOrDefault()
|
||||
return filterOff && adapter.mode != SelectableAdapter.Mode.MULTI
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package eu.kanade.tachiyomi.ui.recents
|
||||
|
||||
import android.app.Activity
|
||||
import android.view.View
|
||||
import com.bumptech.glide.load.engine.DiskCacheStrategy
|
||||
import com.bumptech.glide.signature.ObjectKey
|
||||
|
@ -70,9 +71,12 @@ class RecentMangaHolder(
|
|||
R.string.read_, item.mch.history.last_read.timeSpanFromNow
|
||||
)
|
||||
}
|
||||
GlideApp.with(itemView.context).load(item.mch.manga).diskCacheStrategy(DiskCacheStrategy
|
||||
.RESOURCE)
|
||||
.signature(ObjectKey(MangaImpl.getLastCoverFetch(item.mch.manga.id!!).toString())).into(cover_thumbnail)
|
||||
if ((itemView.context as? Activity)?.isDestroyed != true) {
|
||||
GlideApp.with(itemView.context).load(item.mch.manga).diskCacheStrategy(
|
||||
DiskCacheStrategy.RESOURCE
|
||||
).signature(ObjectKey(MangaImpl.getLastCoverFetch(item.mch.manga.id!!).toString()))
|
||||
.into(cover_thumbnail)
|
||||
}
|
||||
notifyStatus(
|
||||
if (adapter.isSelected(adapterPosition)) Download.CHECKED else item.status,
|
||||
item.progress
|
||||
|
|
Reference in a new issue