use layout animations only if they are enabled in the system

This commit is contained in:
tibbi 2021-11-13 09:16:41 +01:00
parent 5f11714e6f
commit ad40ac4e92
2 changed files with 7 additions and 2 deletions

View file

@ -160,7 +160,9 @@ class NewConversationActivity : SimpleActivity() {
contacts_list.adapter = this
}
contacts_list.scheduleLayoutAnimation()
if (areSystemAnimationsEnabled) {
contacts_list.scheduleLayoutAnimation()
}
} else {
(currAdapter as ContactsAdapter).updateContacts(contacts)
}