1
0
mirror of https://github.com/nerzhul/ownCloud-SMS-App.git synced 2025-07-07 14:46:37 +00:00

Improve ASyncContactLoad performance by using addAll instead of looping + add

This commit is contained in:
Loic Blot 2018-02-10 09:49:41 +01:00
parent 5d0b5d377b
commit 1f26787983
No known key found for this signature in database
GPG Key ID: EFAA458E8C153987

View File

@ -77,9 +77,7 @@ public interface ASyncContactLoad {
// Read all contacts
readContacts(serverPhoneList);
for (String phone : serverPhoneList) {
_objects.add(phone);
}
_objects.addAll(serverPhoneList);
// Sort phone numbers
Collections.sort(_objects);