diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-05-31 17:20:21 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-05-31 17:20:21 +0200 |
commit | ea6a008b39b0f669f66f3c8aec08b4deb3ece154 (patch) | |
tree | 9e009627ab1c2c4c86f4499e7cde6d094b4ec900 /src/main/java/eu/siacs/conversations/utils/PhoneHelper.java | |
parent | 1838023c88cee6aa68859ef24227cd81bc47b7f2 (diff) |
execute phone contact changes in singlethreadexecutor
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/utils/PhoneHelper.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/utils/PhoneHelper.java b/src/main/java/eu/siacs/conversations/utils/PhoneHelper.java index 6c1b4bef5..e3a24fcfa 100644 --- a/src/main/java/eu/siacs/conversations/utils/PhoneHelper.java +++ b/src/main/java/eu/siacs/conversations/utils/PhoneHelper.java @@ -13,12 +13,14 @@ import android.os.Bundle; import android.provider.ContactsContract; import android.provider.ContactsContract.Profile; +import java.util.ArrayList; import java.util.List; import java.util.concurrent.RejectedExecutionException; public class PhoneHelper { - public static void loadPhoneContacts(Context context, final List<Bundle> phoneContacts, final OnPhoneContactsLoadedListener listener) { + public static void loadPhoneContacts(Context context, final OnPhoneContactsLoadedListener listener) { + final List<Bundle> phoneContacts = new ArrayList<>(); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && context.checkSelfPermission(Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED) { listener.onPhoneContactsLoaded(phoneContacts); |