From f6673d3e5cbd10febea04f02035591ab15c5c7c0 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Fri, 23 Aug 2013 15:34:17 -0700 Subject: Hide dialpad fragment and exit search ui when phone number selected Bug: 10328290 Change-Id: I3fc560f0727c493ae5f051320ea6abe4715f0e79 --- src/com/android/dialer/dialpad/DialpadFragment.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (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 82f537755..79e830730 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -745,7 +745,7 @@ public class DialpadFragment extends Fragment if (mClearDigitsOnStop) { mClearDigitsOnStop = false; - mDigits.getText().clear(); + clearDialpad(); } } @@ -1157,6 +1157,10 @@ public class DialpadFragment extends Fragment } } + public void clearDialpad() { + mDigits.getText().clear(); + } + private String getCallOrigin() { return (getActivity() instanceof DialtactsActivity) ? ((DialtactsActivity) getActivity()).getCallOrigin() : null; -- cgit v1.2.3