use layout animations only if they are enabled in the system
This commit is contained in:
parent
5f11714e6f
commit
ad40ac4e92
2 changed files with 7 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue