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:
parent
5d0b5d377b
commit
1f26787983
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user