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

Commit 142362f8 authored by Yorke Lee's avatar Yorke Lee
Browse files

Start contact info cache query thread in onResume

Bug: 22783484

Change-Id: If7881ad6a18eafe0b2ea8411b8472ba444320991
parent ed058349
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -367,6 +367,12 @@ public class CallLogAdapter extends GroupingListAdapter
        mContactInfoCache.invalidate();
    }

    public void startCache() {
        if (PermissionsUtil.hasPermission(mContext, android.Manifest.permission.READ_CONTACTS)) {
            mContactInfoCache.start();
        }
    }

    public void pauseCache() {
        mContactInfoCache.stop();
        mTelecomCallLogCache.reset();
+1 −0
Original line number Diff line number Diff line
@@ -338,6 +338,7 @@ public class CallLogFragment extends Fragment implements CallLogQueryHandler.Lis
        }
        mHasReadCallLogPermission = hasReadCallLogPermission;
        refreshData();
        mAdapter.startCache();
    }

    @Override