From 87ba489564b25d4a64c9faaeafea46e2f72d8933 Mon Sep 17 00:00:00 2001 From: Nancy Chen Date: Wed, 11 Jun 2014 17:56:07 -0700 Subject: Add icon indicating subscription in call log/call history Display an icon in the call details showing which connection provider (subscription) is responsible for the call. Bug: 15473965 Change-Id: I0c6755864083799b8bafe20c3692b0d943beeee3 --- src/com/android/dialer/dialpad/DialpadFragment.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/com/android/dialer/dialpad') diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index 6e91f192e..21c7d82cd 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -40,6 +40,7 @@ import android.provider.Contacts.People; import android.provider.Contacts.Phones; import android.provider.Contacts.PhonesColumns; import android.provider.Settings; +import android.telecomm.Subscription; import android.telephony.PhoneNumberUtils; import android.telephony.PhoneStateListener; import android.telephony.TelephonyManager; @@ -1072,9 +1073,14 @@ public class DialpadFragment extends Fragment // Clear the digits just in case. clearDialpad(); } else { + final Subscription subscription = mSubscriptionManager != null? + mSubscriptionManager.getCurrentSubscription() : null; + + final Intent intent = CallUtil.getCallIntent(number, (getActivity() instanceof DialtactsActivity ? - ((DialtactsActivity) getActivity()).getCallOrigin() : null)); + ((DialtactsActivity) getActivity()).getCallOrigin() : null), + subscription); DialerUtils.startActivityWithErrorToast(getActivity(), intent); hideAndClearDialpad(false); } -- cgit v1.2.3