search: remove obsolete divider code

How did this even get here???
This commit is contained in:
Alexander Capehart 2023-01-23 09:12:22 -07:00
parent a6f2d82107
commit 866d20f6eb
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
2 changed files with 0 additions and 10 deletions

View file

@ -71,16 +71,7 @@ class SearchAdapter(private val listener: SelectableListListener<Music>) :
override fun isItemFullWidth(position: Int) = getItem(position) is BasicHeader
/**
* Make sure that the top header has a correctly configured divider visibility. This would
* normally be automatically done by the differ, but that results in a strange animation.
*/
fun pokeDividers() {
notifyItemChanged(0, PAYLOAD_UPDATE_DIVIDER)
}
private companion object {
val PAYLOAD_UPDATE_DIVIDER = 102249124
/** A comparator that can be used with DiffUtil. */
val DIFF_CALLBACK =
object : SimpleDiffCallback<Item>() {

View file

@ -159,7 +159,6 @@ class SearchFragment : ListFragment<Music, FragmentSearchBinding>() {
// the query actually changes instead of once every re-creation event, but sadly
// that doesn't seem possible.
binding.searchRecycler.scrollToPosition(0)
searchAdapter.pokeDividers()
}
}