From ca19504ff58c91497885d9705905f7ab25e97ce0 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Wed, 25 Sep 2013 16:29:38 -0700 Subject: Don't call finish when calling from the dialpad Change-Id: Ib5c98b51c4f3113e434208b83310754b825a197f --- src/com/android/dialer/dialpad/DialpadFragment.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/com/android/dialer/dialpad/DialpadFragment.java') diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index 406612288..e46a8d3e1 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -1082,8 +1082,11 @@ public class DialpadFragment extends Fragment public void callVoicemail() { startActivity(getVoicemailIntent()); - mClearDigitsOnStop = true; - getActivity().finish(); + hideAndClearDialpad(); + } + + private void hideAndClearDialpad() { + ((DialtactsActivity) getActivity()).hideDialpadFragment(false, true); } public static class ErrorDialogFragment extends DialogFragment { @@ -1179,8 +1182,7 @@ public class DialpadFragment extends Fragment (getActivity() instanceof DialtactsActivity ? ((DialtactsActivity) getActivity()).getCallOrigin() : null)); startActivity(intent); - mClearDigitsOnStop = true; - getActivity().finish(); + hideAndClearDialpad(); } } } -- cgit v1.2.3