diff options
author | Yorke Lee <yorkelee@google.com> | 2014-03-07 17:04:49 -0800 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-03-11 14:46:47 -0700 |
commit | 39fcd12c8d93038787ca61b461b6abbb1b79e80b (patch) | |
tree | 60d00e89d17bc1258a2415c765562b2c2c3cbe5e /src/com/android/dialer/dialpad/DialpadFragment.java | |
parent | 468922c84f439203218d961b8e35ccdc7be23b7b (diff) |
Make dialpad slide down when dismissed by tapping outside
The dialpad currently simply disappears from view immediately when
dismissed by tapping in the space above it. instead, it should
slide downwards.
Change-Id: Idba1b8c6ccf40a6b12ea611d880e9f86183e6478
Diffstat (limited to 'src/com/android/dialer/dialpad/DialpadFragment.java')
-rw-r--r-- | src/com/android/dialer/dialpad/DialpadFragment.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index ae9700f33..7762721a1 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -419,7 +419,7 @@ public class DialpadFragment extends Fragment @Override public boolean onTouch(View v, MotionEvent event) { if (isDigitsEmpty()) { - hideAndClearDialpad(); + hideAndClearDialpad(true); return true; } return false; @@ -1059,11 +1059,11 @@ public class DialpadFragment extends Fragment public void callVoicemail() { startActivity(getVoicemailIntent()); - hideAndClearDialpad(); + hideAndClearDialpad(false); } - private void hideAndClearDialpad() { - ((DialtactsActivity) getActivity()).hideDialpadFragment(false, true); + private void hideAndClearDialpad(boolean animate) { + ((DialtactsActivity) getActivity()).hideDialpadFragment(animate, true); } public static class ErrorDialogFragment extends DialogFragment { @@ -1158,7 +1158,7 @@ public class DialpadFragment extends Fragment (getActivity() instanceof DialtactsActivity ? ((DialtactsActivity) getActivity()).getCallOrigin() : null)); startActivity(intent); - hideAndClearDialpad(); + hideAndClearDialpad(false); } } } |