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();
}
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();
}
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();
}
Aggregations