diff options
author | Yorke Lee <yorkelee@google.com> | 2014-03-24 12:18:11 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-03-24 19:30:30 +0000 |
commit | c1023e5563082fe7793dbce4dadfb0e060c1daa2 (patch) | |
tree | 465ab0525fbe2cfb90573a62794cd4b96d8e8a05 | |
parent | 43242b3fd5c4081d3d826802481d3066d4839343 (diff) |
DO NOT MERGE Fix for in-call dialpad not sliding full length of screen
Bug: 13189041
Change-Id: I5b5ceda11d1d5b89141255f867deb8688c95f5d4
-rw-r--r-- | InCallUI/res/anim/incall_dialpad_slide_in.xml (renamed from InCallUI/res/anim/slide_in.xml) | 2 | ||||
-rw-r--r-- | InCallUI/res/anim/incall_dialpad_slide_out.xml (renamed from InCallUI/res/anim/slide_out.xml) | 2 | ||||
-rw-r--r-- | InCallUI/src/com/android/incallui/DialpadFragment.java | 2 | ||||
-rw-r--r-- | InCallUI/src/com/android/incallui/InCallActivity.java | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/InCallUI/res/anim/slide_in.xml b/InCallUI/res/anim/incall_dialpad_slide_in.xml index c8372ce27..89f4552ab 100644 --- a/InCallUI/res/anim/slide_in.xml +++ b/InCallUI/res/anim/incall_dialpad_slide_in.xml @@ -16,7 +16,7 @@ <objectAnimator xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/decelerate_interpolator" - android:valueFrom="0.67" + android:valueFrom="1.0" android:valueTo="0" android:valueType="floatType" android:propertyName="yFraction" diff --git a/InCallUI/res/anim/slide_out.xml b/InCallUI/res/anim/incall_dialpad_slide_out.xml index 2861db275..7fa03a252 100644 --- a/InCallUI/res/anim/slide_out.xml +++ b/InCallUI/res/anim/incall_dialpad_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="1.0" android:valueType="floatType" android:propertyName="yFraction" android:duration="200" />
\ No newline at end of file diff --git a/InCallUI/src/com/android/incallui/DialpadFragment.java b/InCallUI/src/com/android/incallui/DialpadFragment.java index 1c22c3d80..236b38c9c 100644 --- a/InCallUI/src/com/android/incallui/DialpadFragment.java +++ b/InCallUI/src/com/android/incallui/DialpadFragment.java @@ -43,7 +43,7 @@ public class DialpadFragment extends BaseFragment<DialpadPresenter, DialpadPrese implements DialpadPresenter.DialpadUi, View.OnTouchListener, View.OnKeyListener, View.OnHoverListener, View.OnClickListener { - private static final float DIALPAD_SLIDE_FRACTION = 0.67f; + private static final float DIALPAD_SLIDE_FRACTION = 1.0f; /** * LinearLayout with getter and setter methods for the translationY property using floats, diff --git a/InCallUI/src/com/android/incallui/InCallActivity.java b/InCallUI/src/com/android/incallui/InCallActivity.java index fa6cc2dc6..c34d85470 100644 --- a/InCallUI/src/com/android/incallui/InCallActivity.java +++ b/InCallUI/src/com/android/incallui/InCallActivity.java @@ -405,10 +405,10 @@ public class InCallActivity extends Activity { public void displayDialpad(boolean showDialpad) { final FragmentTransaction ft = getFragmentManager().beginTransaction(); if (showDialpad) { - ft.setCustomAnimations(R.anim.slide_in, 0); + ft.setCustomAnimations(R.anim.incall_dialpad_slide_in, 0); ft.show(mDialpadFragment); } else { - ft.setCustomAnimations(0, R.anim.slide_out); + ft.setCustomAnimations(0, R.anim.incall_dialpad_slide_out); ft.hide(mDialpadFragment); } ft.commitAllowingStateLoss(); |