Search in sources :

Example 6 with CallIntentBuilder

use of com.android.dialer.util.IntentUtil.CallIntentBuilder in project android_packages_apps_Dialer by MoKee.

the class MissedCallNotifier method callBackFromMissedCall.

/**
 * Trigger an intent to make a call from a missed call number.
 */
public void callBackFromMissedCall(String number) {
    closeSystemDialogs(mContext);
    CallLogNotificationsHelper.removeMissedCallNotifications(mContext);
    DialerUtils.startActivityWithErrorToast(mContext, new CallIntentBuilder(number).build().setFlags(Intent.FLAG_ACTIVITY_NEW_TASK));
}
Also used : CallIntentBuilder(com.android.dialer.util.IntentUtil.CallIntentBuilder)

Aggregations

CallIntentBuilder (com.android.dialer.util.IntentUtil.CallIntentBuilder)6 Intent (android.content.Intent)4 RecognizerIntent (android.speech.RecognizerIntent)1 View (android.view.View)1 ListView (android.widget.ListView)1 TextView (android.widget.TextView)1 ContactsPreferences (com.android.contacts.common.preference.ContactsPreferences)1 CallTypeHelper (com.android.dialer.calllog.CallTypeHelper)1 ContactInfoHelper (com.android.dialer.calllog.ContactInfoHelper)1 FilteredNumberAsyncQueryHandler (com.android.dialer.database.FilteredNumberAsyncQueryHandler)1