Autocompletion: disable animation on the recycler view items

This commit is contained in:
Benoit Marty 2019-12-20 00:42:19 +01:00
parent 92f43a591a
commit c31b64771b
3 changed files with 6 additions and 0 deletions

View file

@ -32,6 +32,8 @@ class AutocompleteCommandPresenter @Inject constructor(context: Context,
}
override fun instantiateAdapter(): RecyclerView.Adapter<*> {
// Also remove animation
recyclerView?.itemAnimator = null
return controller.adapter
}

View file

@ -36,6 +36,8 @@ class AutocompleteRoomPresenter @Inject constructor(context: Context,
}
override fun instantiateAdapter(): RecyclerView.Adapter<*> {
// Also remove animation
recyclerView?.itemAnimator = null
return controller.adapter
}

View file

@ -36,6 +36,8 @@ class AutocompleteUserPresenter @Inject constructor(context: Context,
}
override fun instantiateAdapter(): RecyclerView.Adapter<*> {
// Also remove animation
recyclerView?.itemAnimator = null
return controller.adapter
}