Search in sources :

Example 1 with ContactInfoCache

use of com.android.dialer.app.contactinfo.ContactInfoCache in project android_packages_apps_Dialer by LineageOS.

the class CallLogFragment method setupData.

protected void setupData() {
    int activityType = mIsCallLogActivity ? CallLogAdapter.ACTIVITY_TYPE_CALL_LOG : CallLogAdapter.ACTIVITY_TYPE_DIALTACTS;
    String currentCountryIso = GeoUtil.getCurrentCountryIso(getActivity());
    mContactInfoCache = new ContactInfoCache(ExpirableCacheHeadlessFragment.attach((AppCompatActivity) getActivity()).getRetainedCache(), new ContactInfoHelper(getActivity(), currentCountryIso), mOnContactInfoChangedListener);
    mAdapter = Bindings.getLegacy(getActivity()).newCallLogAdapter(getActivity(), mRecyclerView, this, this, activityType == CallLogAdapter.ACTIVITY_TYPE_DIALTACTS ? (CallLogAdapter.OnActionModeStateChangedListener) getActivity() : null, new CallLogCache(getActivity()), mContactInfoCache, getVoicemailPlaybackPresenter(), new FilteredNumberAsyncQueryHandler(getActivity()), activityType);
    mRecyclerView.setAdapter(mAdapter);
    fetchCalls();
}
Also used : CallLogCache(com.android.dialer.app.calllog.calllogcache.CallLogCache) ContactInfoHelper(com.android.dialer.phonenumbercache.ContactInfoHelper) AppCompatActivity(android.support.v7.app.AppCompatActivity) FilteredNumberAsyncQueryHandler(com.android.dialer.blocking.FilteredNumberAsyncQueryHandler) ContactInfoCache(com.android.dialer.app.contactinfo.ContactInfoCache)

Aggregations

AppCompatActivity (android.support.v7.app.AppCompatActivity)1 CallLogCache (com.android.dialer.app.calllog.calllogcache.CallLogCache)1 ContactInfoCache (com.android.dialer.app.contactinfo.ContactInfoCache)1 FilteredNumberAsyncQueryHandler (com.android.dialer.blocking.FilteredNumberAsyncQueryHandler)1 ContactInfoHelper (com.android.dialer.phonenumbercache.ContactInfoHelper)1