diff options
author | Yorke Lee <yorkelee@google.com> | 2014-03-13 23:53:40 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-13 23:53:40 +0000 |
commit | 4eda4c4b261a5e3bdd0ed3ab61a3272bd7a45495 (patch) | |
tree | 2f79f86a202bd639ba7bcadf635e32fda9746a6a | |
parent | e6a52dbed95f9d01d07db1c17702764a454803b7 (diff) | |
parent | 364b5735d69ac835a7e66554ecd526d7a334d9a2 (diff) |
am 364b5735: am 82e17500: Merge "DO NOT MERGE Make dialpad slide down when dismissed by tapping outside" into klp-dev
* commit '364b5735d69ac835a7e66554ecd526d7a334d9a2':
DO NOT MERGE Make dialpad slide down when dismissed by tapping outside
-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); } } } |