diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/recent_updates/RecentChaptersAdapter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/recent_updates/RecentChaptersAdapter.kt index 6d72497641..48b29ef4e3 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/recent_updates/RecentChaptersAdapter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/recent_updates/RecentChaptersAdapter.kt @@ -9,7 +9,6 @@ class RecentChaptersAdapter(val controller: RecentChaptersController) : val coverClickListener: OnCoverClickListener = controller var recents = emptyList() - private var isAnimating = false init { setDisplayHeadersAtStartUp(true) @@ -24,11 +23,10 @@ class RecentChaptersAdapter(val controller: RecentChaptersController) : fun performFilter() { val s = getFilter(String::class.java) if (s.isNullOrBlank()) { - updateDataSet(recents, isAnimating) + updateDataSet(recents) } else { - updateDataSet(recents.filter { it.filter(s) }, isAnimating) + updateDataSet(recents.filter { it.filter(s) }) } - isAnimating = false } interface OnCoverClickListener { @@ -37,7 +35,6 @@ class RecentChaptersAdapter(val controller: RecentChaptersController) : override fun onItemSwiped(position: Int, direction: Int) { super.onItemSwiped(position, direction) - isAnimating = true when (direction) { ItemTouchHelper.LEFT -> controller.toggleMarkAsRead(position) } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentMangaAdapter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentMangaAdapter.kt index 94e1fd4d26..b5a0e40723 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentMangaAdapter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/recents/RecentMangaAdapter.kt @@ -9,14 +9,12 @@ import java.text.DecimalFormatSymbols class RecentMangaAdapter(val delegate: RecentsInterface) : BaseChapterAdapter>(delegate) { - private var isAnimating = false init { setDisplayHeadersAtStartUp(true) } fun updateItems(items: List>?) { - updateDataSet(items, isAnimating) - isAnimating = false + updateDataSet(items) } val decimalFormat = DecimalFormat("#.###", DecimalFormatSymbols() @@ -34,7 +32,6 @@ class RecentMangaAdapter(val delegate: RecentsInterface) : override fun onItemSwiped(position: Int, direction: Int) { super.onItemSwiped(position, direction) - isAnimating = true when (direction) { ItemTouchHelper.LEFT -> delegate.markAsRead(position) }