mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-22 21:58:53 +01:00
#1155 - Fix search not being cleared after contact is selected
This commit is contained in:
@@ -38,6 +38,7 @@ abstract class QkAdapter<T> : RecyclerView.Adapter<QkViewHolder>() {
|
|||||||
val diff = DiffUtil.calculateDiff(getDiffUtilCallback(field, value))
|
val diff = DiffUtil.calculateDiff(getDiffUtilCallback(field, value))
|
||||||
field = value
|
field = value
|
||||||
diff.dispatchUpdatesTo(this)
|
diff.dispatchUpdatesTo(this)
|
||||||
|
onDatasetChanged()
|
||||||
|
|
||||||
emptyView?.setVisible(value.isEmpty())
|
emptyView?.setVisible(value.isEmpty())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user