summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2014-05-07 13:30:09 -0700
committerAndrew Lee <anwlee@google.com>2014-05-07 13:30:18 -0700
commitb1ec21ed93078cf922c257637a1118f000121a84 (patch)
tree367eb1db06a18f85754381f2b73773bdf4ea4c17
parent50e77a1460569f91f92ca0b48a3b23f2a6cefbb4 (diff)
Adjust dialpad slide out animation.
Bug: 14471388 Change-Id: I6f12ea8e472e54c4d5c8c4175166da48028116ac
-rw-r--r--res/anim/slide_out.xml4
-rw-r--r--src/com/android/dialer/dialpad/DialpadFragment.java5
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();