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

Commit 34dadc9c authored by Wenyi Wang's avatar Wenyi Wang Committed by Android (Google) Code Review
Browse files

Merge "Call forceLoad() when loader is not started to load hi-res photo"

parents 61dea672 c02118d6
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1151,6 +1151,12 @@ public class QuickContactActivity extends ContactsActivity
            destroyInteractionLoaders();
            mContactLoader = (ContactLoader) getLoaderManager().restartLoader(
                    LOADER_CONTACT_ID, null, mLoaderContactCallbacks);
            // mContactLoader may not be in the state of "started". If not, onContentChanged() will
            // not call forceLoad(), so QuickContact will not get the newly updated hi-res
            // photo. If this is the case, we call forceLoad explicitly. See b/25204200.
            if (!mContactLoader.isStarted()) {
                mContactLoader.forceLoad();
            }
            mCachedCp2DataCardModel = null;
        }