diff options
Diffstat (limited to 'java/com/android/contacts/common/widget')
-rw-r--r-- | java/com/android/contacts/common/widget/FloatingActionButtonController.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/java/com/android/contacts/common/widget/FloatingActionButtonController.java b/java/com/android/contacts/common/widget/FloatingActionButtonController.java index 368d09207..d924681ea 100644 --- a/java/com/android/contacts/common/widget/FloatingActionButtonController.java +++ b/java/com/android/contacts/common/widget/FloatingActionButtonController.java @@ -72,12 +72,16 @@ public class FloatingActionButtonController { } /** - * Sets FAB as View.VISIBLE or View.GONE. + * Sets FAB as shown or hidden. * * @param visible Whether or not to make the container visible. */ public void setVisible(boolean visible) { - mFab.setVisibility(visible ? View.VISIBLE : View.GONE); + if (visible) { + mFab.show(); + } else { + mFab.hide(); + } } public void changeIcon(Drawable icon, String description) { |