Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3bb7d90 authored by Moez Bhatti's avatar Moez Bhatti
Browse files

Contact list animations

parent 33f57d35
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -168,6 +168,14 @@ class ComposeItemAdapter @Inject constructor(private val colors: Colors) : QkAda
        (view.numbers.adapter as PhoneNumberAdapter).data = contact.numbers
    }

    override fun areContentsTheSame(old: ComposeItem, new: ComposeItem): Boolean = false
    override fun areItemsTheSame(old: ComposeItem, new: ComposeItem): Boolean {
        val oldIds = old.getContacts().map { contact -> contact.lookupKey }
        val newIds = new.getContacts().map { contact -> contact.lookupKey }
        return oldIds == newIds
    }

    override fun areContentsTheSame(old: ComposeItem, new: ComposeItem): Boolean {
        return false
    }

}
+0 −1
Original line number Diff line number Diff line
@@ -87,7 +87,6 @@ class ContactsActivity : QkThemedActivity(), ContactsContract {
        showBackButton(true)
        viewModel.bindView(this)

        contacts.itemAnimator = null
        contacts.adapter = contactsAdapter

        // These theme attributes don't apply themselves on API 21