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

Commit 0c035143 authored by Evan Millar's avatar Evan Millar
Browse files

Clear bitmap cache in onResume() to make sure photos are fresh.

bc_triaged bug: http://b/issue?id=2177238
Dr. No: Tim Sullivan
parent dbb924c4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -750,6 +750,11 @@ public class ContactsListActivity extends ListActivity implements
    protected void onResume() {
        super.onResume();

        // Force cache to reload so we don't show stale photos.
        if (mAdapter.mBitmapCache != null) {
            mAdapter.mBitmapCache.clear();
        }

        mScrollState = OnScrollListener.SCROLL_STATE_IDLE;
        boolean runQuery = true;
        Activity parent = getParent();