diff options
author | Yorke Lee <yorkelee@google.com> | 2014-03-07 17:04:49 -0800 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-03-11 16:12:20 -0700 |
commit | b3df8c1db0e858d370bff95c28bab0ca46b49d1b (patch) | |
tree | 3fb5bbbfdfc07e149f9d0c1b8d1ef3cc47e6ee27 | |
parent | f879638042b12a86c0da737dd86c4e05973eeb6f (diff) |
DO NOT MERGE 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.
Cherry-pick from https://googleplex-android-review.git.corp.google.com/#/c/430822/
Bug: 13419260
Change-Id: Ibc248f7c36289e151e0ea41b2bb32e64dcb07088
-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 599604b2c..a1844236d 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -420,7 +420,7 @@ public class DialpadFragment extends Fragment @Override public boolean onTouch(View v, MotionEvent event) { if (isDigitsEmpty()) { - hideAndClearDialpad(); + hideAndClearDialpad(true); return true; } return false; @@ -1054,11 +1054,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 { @@ -1154,7 +1154,7 @@ public class DialpadFragment extends Fragment (getActivity() instanceof DialtactsActivity ? ((DialtactsActivity) getActivity()).getCallOrigin() : null)); startActivity(intent); - hideAndClearDialpad(); + hideAndClearDialpad(false); } } } |