diff options
author | Yorke Lee <yorkelee@google.com> | 2014-09-10 14:43:30 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-09-10 14:43:30 +0000 |
commit | 0f39405eb00f3cb73d48c036efeb24cb2e4e6809 (patch) | |
tree | d561077b8a098b79ba00c24fe0366f0f758b9458 | |
parent | 6cc7b0a6b0d8adc84969b47b99489487d958748e (diff) | |
parent | 29ae4ae721a1f6d89a8fdca0fd4d49a1e5ecc4a7 (diff) |
am 29ae4ae7: Set the visibility of the FAB correctly even if mAnimate is false
* commit '29ae4ae721a1f6d89a8fdca0fd4d49a1e5ecc4a7':
Set the visibility of the FAB correctly even if mAnimate is false
-rw-r--r-- | src/com/android/dialer/DialtactsActivity.java | 6 | ||||
-rw-r--r-- | src/com/android/dialer/dialpad/DialpadFragment.java | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index b80c27bd4..d7bfb00fb 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -622,7 +622,11 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O ft.show(mDialpadFragment); ft.commit(); - mFloatingActionButtonController.scaleOut(); + if (animate) { + mFloatingActionButtonController.scaleOut(); + } else { + mFloatingActionButtonController.setVisible(false); + } mActionBarController.onDialpadUp(); if (!isInSearchUi()) { diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java index 169b9f3c4..ee1d63438 100644 --- a/src/com/android/dialer/dialpad/DialpadFragment.java +++ b/src/com/android/dialer/dialpad/DialpadFragment.java @@ -1608,8 +1608,8 @@ public class DialpadFragment extends AnalyticsFragment if (!hidden) { if (mAnimate) { dialpadView.animateShow(); - mFloatingActionButtonController.scaleIn(mDialpadSlideInDuration); } + mFloatingActionButtonController.scaleIn(mAnimate ? mDialpadSlideInDuration : 0); activity.onDialpadShown(); mDigits.requestFocus(); } |