Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa5cac38 authored by Yao Lu's avatar Yao Lu Committed by Android (Google) Code Review
Browse files

Merge "Fix new contact not being loaded in QuickContact" into ub-contactsdialer-h-dev

parents 426cf57e 4861031d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -299,8 +299,9 @@ public class ContactLoader extends AsyncTaskLoader<Contact> {
        public static final int EXPORT_SUPPORT = 5;
    }

    public void setLookupUri(Uri lookupUri) {
    public void setNewLookup(Uri lookupUri) {
        mLookupUri = lookupUri;
        mContact = null;
    }

    @Override
+1 −1
Original line number Diff line number Diff line
@@ -1015,7 +1015,7 @@ public class QuickContactActivity extends ContactsActivity {
            destroyInteractionLoaders();
            mContactLoader = (ContactLoader) (Loader<?>) getLoaderManager().getLoader(
                    LOADER_CONTACT_ID);
            mContactLoader.setLookupUri(mLookupUri);
            mContactLoader.setNewLookup(mLookupUri);
            mCachedCp2DataCardModel = null;
        }
        mContactLoader.forceLoad();