search: remove obsolete divider code
How did this even get here???
This commit is contained in:
parent
a6f2d82107
commit
866d20f6eb
2 changed files with 0 additions and 10 deletions
|
@ -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>() {
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue