From b1ec21ed93078cf922c257637a1118f000121a84 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 7 May 2014 13:30:09 -0700 Subject: Adjust dialpad slide out animation. Bug: 14471388 Change-Id: I6f12ea8e472e54c4d5c8c4175166da48028116ac --- src/com/android/dialer/dialpad/DialpadFragment.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/com/android/dialer') diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index 245629474..ba4ae7b36 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -1608,12 +1608,15 @@ public class DialpadFragment extends Fragment public void onHiddenChanged(boolean hidden) { super.onHiddenChanged(hidden); final DialtactsActivity activity = (DialtactsActivity) getActivity(); + final DialpadView dialpadView = (DialpadView) getView().findViewById(R.id.dialpad_view); if (activity == null) return; if (hidden) { + if (mAnimate) { + dialpadView.animateHide(); + } activity.onDialpadHidden(); } else { if (mAnimate) { - DialpadView dialpadView = (DialpadView) getView().findViewById(R.id.dialpad_view); dialpadView.animateShow(); } activity.onDialpadShown(); -- cgit v1.2.3