Merge branch 'master' into devel

This commit is contained in:
Koitharu
2024-01-24 12:32:04 +02:00
2 changed files with 10 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ android {
minSdk = 21
targetSdk = 34
versionCode = 615
versionName = '6.6.5'
versionName = '6.6.6'
generatedDensities = []
testInstrumentationRunner 'org.koitharu.kotatsu.HiltTestRunner'
ksp {

View File

@@ -1,6 +1,7 @@
package org.koitharu.kotatsu.favourites.ui.categories.adapter
import org.koitharu.kotatsu.favourites.domain.model.Cover
import org.koitharu.kotatsu.list.ui.ListModelDiffCallback
import org.koitharu.kotatsu.list.ui.model.ListModel
data class AllCategoriesListModel(
@@ -12,4 +13,12 @@ data class AllCategoriesListModel(
override fun areItemsTheSame(other: ListModel): Boolean {
return other is AllCategoriesListModel
}
override fun getChangePayload(previousState: ListModel): Any? {
return if (previousState is AllCategoriesListModel && previousState.isVisible != isVisible) {
ListModelDiffCallback.PAYLOAD_CHECKED_CHANGED
} else {
super.getChangePayload(previousState)
}
}
}