mirror of
https://github.com/nerzhul/ownCloud-SMS-App.git
synced 2026-08-20 21:03:08 +00:00
Improve ASyncContactLoad performance by using addAll instead of looping + add
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user