summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanesh M <daneshm90@gmail.com>2015-09-10 17:13:10 -0700
committerRohit Yengisetty <rohit@cyngn.com>2015-12-02 15:53:59 -0800
commitb163f4a2598156239e9808efd4d997c852a1700e (patch)
treef7f5ab25e7ca82011b1d27844abaf0193800000a
parent182560ee81a5329e5d110a86e5419ce71d6dc829 (diff)
downloadandroid_packages_apps_Contacts-b163f4a2598156239e9808efd4d997c852a1700e.tar.gz
android_packages_apps_Contacts-b163f4a2598156239e9808efd4d997c852a1700e.tar.bz2
android_packages_apps_Contacts-b163f4a2598156239e9808efd4d997c852a1700e.zip
Contacts : Ensure query excludes LOCAL_CONTACTS
Since we add local accounts ourselves, ensure account manager does not return it in the list to avoid duplicates. issue-id: CYNGNOS-949 Change-Id: Icee16303ba8bf2a62317a3b51f0b83f9357d6f52
-rw-r--r--src/com/android/contacts/activities/MemoryStatusActivity.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/contacts/activities/MemoryStatusActivity.java b/src/com/android/contacts/activities/MemoryStatusActivity.java
index 492844b80..2622c4018 100644
--- a/src/com/android/contacts/activities/MemoryStatusActivity.java
+++ b/src/com/android/contacts/activities/MemoryStatusActivity.java
@@ -155,7 +155,8 @@ public class MemoryStatusActivity extends ContactsActivity {
private List<AccountListItem> loadAccountFilters(Context context) {
final ArrayList<AccountListItem> accountFilters = Lists.newArrayList();
final AccountTypeManager accountTypes = AccountTypeManager.getInstance(context);
- List<AccountWithDataSet> accounts = accountTypes.getAccounts(true);
+ List<AccountWithDataSet> accounts = accountTypes.getAccounts(true,
+ AccountTypeManager.FLAG_ALL_ACCOUNTS_WITHOUT_LOCAL);
ContentResolver cr = context.getContentResolver();
// Add the local account first, this is a special case.