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 --- res/anim/slide_out.xml | 4 ++-- src/com/android/dialer/dialpad/DialpadFragment.java | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/res/anim/slide_out.xml b/res/anim/slide_out.xml index e037009f7..6b180c518 100644 --- a/res/anim/slide_out.xml +++ b/res/anim/slide_out.xml @@ -17,7 +17,7 @@ xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/decelerate_interpolator" android:valueFrom="0" - android:valueTo="0.67" + android:valueTo="0.8" android:valueType="floatType" android:propertyName="yFraction" - android:duration="200" /> \ No newline at end of file + android:duration="429" /> \ No newline at end of file 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