summaryrefslogtreecommitdiffstats
path: root/src/com/android/contacts/quickcontact/QuickContactActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/contacts/quickcontact/QuickContactActivity.java')
-rw-r--r--src/com/android/contacts/quickcontact/QuickContactActivity.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/com/android/contacts/quickcontact/QuickContactActivity.java b/src/com/android/contacts/quickcontact/QuickContactActivity.java
index 877d9adf9..46762651e 100644
--- a/src/com/android/contacts/quickcontact/QuickContactActivity.java
+++ b/src/com/android/contacts/quickcontact/QuickContactActivity.java
@@ -283,6 +283,8 @@ public class QuickContactActivity extends ContactsActivity implements
private AsyncTask<Void, Void, Void> mRecentDataTask;
private AtomicBoolean mIsUpdating;
private static final String CALL_METHOD_SUBSCRIBER_ID = TAG;
+ // flag to track if the onResume cycle is directly from a configuration change
+ private boolean mConfigurationChanged;
/**
* The last copy of Cp2DataCardModel that was passed to {@link #populateContactAndAboutCard}.
*/
@@ -966,6 +968,7 @@ public class QuickContactActivity extends ContactsActivity implements
mBlockContactHelper.setContactInfo(mContactData);
mBlockContactHelper.gatherDataInBackground();
}
+ mConfigurationChanged = (savedInstanceState != null);
Trace.endSection();
}
@@ -1303,9 +1306,10 @@ public class QuickContactActivity extends ContactsActivity implements
ContactsDataSubscription dataSubscription = ContactsDataSubscription.get(this);
if (dataSubscription.subscribe(CALL_METHOD_SUBSCRIBER_ID, pluginsUpdatedReceiver)) {
if (DEBUG) Log.d(TAG, "ContactsDataSubscription infoReady");
- if (CallMethodFilters.getAllEnabledCallMethods(dataSubscription).size() > 0) {
+ if (CallMethodFilters.getAllEnabledAndHiddenCallMethods(dataSubscription).size() > 0) {
// only refresh if there are ENABLED plugins
- dataSubscription.refreshDynamicItems();
+ InCallPluginUtils.refreshInCallPlugins(this, mConfigurationChanged,
+ dataSubscription);
} else {
// double check if UI needs update in case plugin status changes between
// ENABLED and DISABLED or ENABLED and HIDDEN or DISABLED and HIDDEN
@@ -1333,7 +1337,7 @@ public class QuickContactActivity extends ContactsActivity implements
@Override
protected void onPause() {
super.onPause();
-
+ mConfigurationChanged = false;
ContactsDataSubscription.get(this).unsubscribe(CALL_METHOD_SUBSCRIBER_ID);
}