diff options
-rw-r--r-- | src/com/android/contacts/interactions/CallLogInteractionsLoader.java | 9 | ||||
-rw-r--r-- | src/com/android/contacts/quickcontact/QuickContactActivity.java | 6 |
2 files changed, 8 insertions, 7 deletions
diff --git a/src/com/android/contacts/interactions/CallLogInteractionsLoader.java b/src/com/android/contacts/interactions/CallLogInteractionsLoader.java index 7035ffb1d..27cc1569a 100644 --- a/src/com/android/contacts/interactions/CallLogInteractionsLoader.java +++ b/src/com/android/contacts/interactions/CallLogInteractionsLoader.java @@ -72,9 +72,10 @@ public class CallLogInteractionsLoader extends AsyncTaskLoader<List<ContactInter } } // add plugin entries - if (ContactsDataSubscription.infoReady()) { - HashMap<ComponentName, CallMethodInfo> inCallPlugins = CallMethodFilters - .getAllEnabledCallMethods(ContactsDataSubscription.get(getContext())); + ContactsDataSubscription subscription = ContactsDataSubscription.get(getContext()); + if (subscription.infoReady()) { + HashMap<ComponentName, CallMethodInfo> inCallPlugins = + CallMethodFilters.getAllEnabledCallMethods(subscription); if (inCallPlugins != null) { for (ComponentName cn : inCallPlugins.keySet()) { List<String> accountList = mPluginAccountsMap.get(cn); @@ -227,4 +228,4 @@ public class CallLogInteractionsLoader extends AsyncTaskLoader<List<ContactInter mData.clear(); } } -}
\ No newline at end of file +} diff --git a/src/com/android/contacts/quickcontact/QuickContactActivity.java b/src/com/android/contacts/quickcontact/QuickContactActivity.java index 9de8141c4..869800a7e 100644 --- a/src/com/android/contacts/quickcontact/QuickContactActivity.java +++ b/src/com/android/contacts/quickcontact/QuickContactActivity.java @@ -1511,7 +1511,7 @@ public class QuickContactActivity extends ContactsActivity implements Set<String> pluginMimeExcluded; Set<String> pluginMimeIncluded; ContactsDataSubscription subscription = ContactsDataSubscription.get(this); - if (ContactsDataSubscription.infoReady()) { + if (subscription.infoReady()) { mCallMethodMap = CallMethodFilters.getAllEnabledAndHiddenCallMethods(subscription); pluginMimeExcluded = MimeTypeUtils.getAllEnabledVideoImMimeSet(subscription); pluginMimeIncluded = MimeTypeUtils.getAllEnabledVoiceMimeSet(subscription); @@ -1616,8 +1616,8 @@ public class QuickContactActivity extends ContactsActivity implements } } } - if (!mContactData.isUserProfile() && ContactsDataSubscription.infoReady() && mCallMethodMap - .size() > 0) { + if (!mContactData.isUserProfile() && subscription.infoReady() + && !mCallMethodMap.isEmpty()) { addAllInCallPluginOtherEntries(contactCardEntries, pluginAccountsMap); } |