diff options
author | Andrew Lee <anwlee@google.com> | 2014-05-07 13:30:09 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2014-05-07 13:30:18 -0700 |
commit | b1ec21ed93078cf922c257637a1118f000121a84 (patch) | |
tree | 367eb1db06a18f85754381f2b73773bdf4ea4c17 /src | |
parent | 50e77a1460569f91f92ca0b48a3b23f2a6cefbb4 (diff) |
Adjust dialpad slide out animation.
Bug: 14471388
Change-Id: I6f12ea8e472e54c4d5c8c4175166da48028116ac
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/dialpad/DialpadFragment.java | 5 |
1 files changed, 4 insertions, 1 deletions
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(); |