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

Commit bb15144e authored by Yorke Lee's avatar Yorke Lee Committed by Android Git Automerger
Browse files

am 142362f8: Start contact info cache query thread in onResume

* commit '142362f8':
  Start contact info cache query thread in onResume
parents 0fc67af1 142362f8
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