From f663fa083983a9b417f642e246d0873e0c424bb9 Mon Sep 17 00:00:00 2001 From: Nancy Chen Date: Tue, 14 Oct 2014 13:58:06 -0700 Subject: Make a general call to voicemail when calling back from call log. A voicemail call log entry is saved with the number of the voicemail that was called. In the multi-sim case, however, we don't want to call back to the voicemail number of the original call because it might be the number of a different phone account. Bug: 17925501 Change-Id: I528c4039cc227608e040ae71b6b10488376fb357 --- src/com/android/dialer/dialpad/DialpadFragment.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (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 7faed07ad..c83a16c08 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -255,13 +255,6 @@ public class DialpadFragment extends AnalyticsFragment private static final String PREF_DIGITS_FILLED_BY_INTENT = "pref_digits_filled_by_intent"; - /** - * Return an Intent for launching voicemail screen. - */ - private static Intent getVoicemailIntent() { - return CallUtil.getCallIntent(Uri.fromParts(PhoneAccount.SCHEME_VOICEMAIL, "", null)); - } - private TelephonyManager getTelephonyManager() { return (TelephonyManager) getActivity().getSystemService(Context.TELEPHONY_SERVICE); } @@ -974,7 +967,7 @@ public class DialpadFragment extends AnalyticsFragment } public void callVoicemail() { - DialerUtils.startActivityWithErrorToast(getActivity(), getVoicemailIntent()); + DialerUtils.startActivityWithErrorToast(getActivity(), CallUtil.getVoicemailIntent()); hideAndClearDialpad(false); } -- cgit v1.2.3