commit | aa5cac387776f1cbd946ae4b0a4811d9a2f54914 | [log] [tgz] |
---|---|---|
author | Yao Lu <yaolu@google.com> | Mon Nov 21 22:32:23 2016 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Mon Nov 21 22:32:23 2016 +0000 |
tree | cec2c8a87fb2a05c554d77cc2183d49756bd5bef | |
parent | 426cf57e8873b9181ae50028ce40380821d59953 [diff] | |
parent | 4861031d5f0ac3707fe089c1efd559260672df39 [diff] |
Merge "Fix new contact not being loaded in QuickContact" into ub-contactsdialer-h-dev
diff --git a/src/com/android/contacts/common/model/ContactLoader.java b/src/com/android/contacts/common/model/ContactLoader.java index 0c569ba..2cafc1f 100644 --- a/src/com/android/contacts/common/model/ContactLoader.java +++ b/src/com/android/contacts/common/model/ContactLoader.java
@@ -299,8 +299,9 @@ public static final int EXPORT_SUPPORT = 5; } - public void setLookupUri(Uri lookupUri) { + public void setNewLookup(Uri lookupUri) { mLookupUri = lookupUri; + mContact = null; } @Override
diff --git a/src/com/android/contacts/quickcontact/QuickContactActivity.java b/src/com/android/contacts/quickcontact/QuickContactActivity.java index a98baad..81a3741 100644 --- a/src/com/android/contacts/quickcontact/QuickContactActivity.java +++ b/src/com/android/contacts/quickcontact/QuickContactActivity.java
@@ -1015,7 +1015,7 @@ destroyInteractionLoaders(); mContactLoader = (ContactLoader) (Loader<?>) getLoaderManager().getLoader( LOADER_CONTACT_ID); - mContactLoader.setLookupUri(mLookupUri); + mContactLoader.setNewLookup(mLookupUri); mCachedCp2DataCardModel = null; } mContactLoader.forceLoad();