mirror of
https://github.com/nerzhul/ownCloud-SMS-App.git
synced 2025-07-07 22:56:17 +00:00
Improve ASyncContactLoad performance by using addAll instead of looping + add
This commit is contained in:
parent
5d0b5d377b
commit
1f26787983
@ -77,9 +77,7 @@ public interface ASyncContactLoad {
|
|||||||
// Read all contacts
|
// Read all contacts
|
||||||
readContacts(serverPhoneList);
|
readContacts(serverPhoneList);
|
||||||
|
|
||||||
for (String phone : serverPhoneList) {
|
_objects.addAll(serverPhoneList);
|
||||||
_objects.add(phone);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Sort phone numbers
|
// Sort phone numbers
|
||||||
Collections.sort(_objects);
|
Collections.sort(_objects);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user