use layout animations only if they arent disabled by the system

This commit is contained in:
tibbi
2021-11-17 09:54:44 +01:00
parent 8d9c000a08
commit 8707684013
4 changed files with 21 additions and 5 deletions

View File

@ -139,7 +139,10 @@ class GroupContactsActivity : SimpleActivity(), RemoveFromGroupListener, Refresh
group_contacts_list.adapter = this
}
group_contacts_list.scheduleLayoutAnimation()
if (areSystemAnimationsEnabled) {
group_contacts_list.scheduleLayoutAnimation()
}
group_contacts_fastscroller.setScrollToY(0)
group_contacts_fastscroller.setViews(group_contacts_list) {
val item = (group_contacts_list.adapter as ContactsAdapter).contactItems.getOrNull(it)