diff options
author | Nancy Chen <nancychen@google.com> | 2014-10-14 13:58:06 -0700 |
---|---|---|
committer | Nancy Chen <nancychen@google.com> | 2014-10-17 14:10:33 -0700 |
commit | f663fa083983a9b417f642e246d0873e0c424bb9 (patch) | |
tree | d83d19a9d4a1a8198ddd0406b764474b88276aac /src/com/android/dialer/dialpad/DialpadFragment.java | |
parent | f507886d96f74bd7e54c8f430f5c4e5b23a73b79 (diff) |
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
Diffstat (limited to 'src/com/android/dialer/dialpad/DialpadFragment.java')
-rw-r--r-- | src/com/android/dialer/dialpad/DialpadFragment.java | 9 |
1 files changed, 1 insertions, 8 deletions
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); } |