Search in sources :

Example 1 with CallLogQueryHandler

use of com.android.dialer.calllog.CallLogQueryHandler in project android_packages_apps_Dialer by MoKee.

the class ListsFragment method onResume.

@Override
public void onResume() {
    Trace.beginSection(TAG + " onResume");
    super.onResume();
    mActionBar = ((AppCompatActivity) getActivity()).getSupportActionBar();
    if (getUserVisibleHint()) {
        sendScreenViewForCurrentPosition();
    }
    // Fetch voicemail status to determine if we should show the voicemail tab.
    mCallLogQueryHandler = new CallLogQueryHandler(getActivity(), getActivity().getContentResolver(), this);
    mCallLogQueryHandler.fetchVoicemailStatus();
    mCallLogQueryHandler.fetchMissedCallsUnreadCount();
    Trace.endSection();
}
Also used : CallLogQueryHandler(com.android.dialer.calllog.CallLogQueryHandler)

Example 2 with CallLogQueryHandler

use of com.android.dialer.calllog.CallLogQueryHandler in project android_packages_apps_Dialer by MoKee.

the class VisualVoicemailEnabledChecker method asyncUpdate.

/**
 * Perform an async query into the system to check the status of visual voicemail.
 * If the status has changed, Callback.onVisualVoicemailEnabledStatusChanged() will be called.
 */
public void asyncUpdate() {
    mCallLogQueryHandler = new CallLogQueryHandler(mContext, mContext.getContentResolver(), this);
    mCallLogQueryHandler.fetchVoicemailStatus();
}
Also used : CallLogQueryHandler(com.android.dialer.calllog.CallLogQueryHandler)

Example 3 with CallLogQueryHandler

use of com.android.dialer.calllog.CallLogQueryHandler in project android_packages_apps_Dialer by MoKee.

the class VoicemailArchiveActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.call_log_fragment);
    // Make window opaque to reduce overdraw
    getWindow().setBackgroundDrawable(null);
    ActionBar actionBar = getSupportActionBar();
    actionBar.setDisplayShowHomeEnabled(true);
    actionBar.setDisplayHomeAsUpEnabled(true);
    actionBar.setDisplayShowTitleEnabled(true);
    actionBar.setElevation(0);
    mCallLogQueryHandler = new CallLogQueryHandler(this, getContentResolver(), this);
    mVoicemailPlaybackPresenter = VoicemailArchivePlaybackPresenter.getInstance(this, savedInstanceState);
    mRecyclerView = (RecyclerView) findViewById(R.id.recycler_view);
    mRecyclerView.setHasFixedSize(true);
    mLayoutManager = new LinearLayoutManager(this);
    mRecyclerView.setLayoutManager(mLayoutManager);
    mEmptyListView = (EmptyContentView) findViewById(R.id.empty_list_view);
    mEmptyListView.setDescription(R.string.voicemail_archive_empty);
    mEmptyListView.setImage(R.drawable.empty_call_log);
    mAdapter = ObjectFactory.newCallLogAdapter(this, this, new ContactInfoHelper(this, GeoUtil.getCurrentCountryIso(this)), mVoicemailPlaybackPresenter, CallLogAdapter.ACTIVITY_TYPE_ARCHIVE);
    mRecyclerView.setAdapter(mAdapter);
    fetchCalls();
}
Also used : ContactInfoHelper(com.android.dialer.calllog.ContactInfoHelper) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager) ActionBar(android.support.v7.app.ActionBar) CallLogQueryHandler(com.android.dialer.calllog.CallLogQueryHandler)

Aggregations

CallLogQueryHandler (com.android.dialer.calllog.CallLogQueryHandler)3 ActionBar (android.support.v7.app.ActionBar)1 LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 ContactInfoHelper (com.android.dialer.calllog.ContactInfoHelper)1