Add resetIn method. Undoes affect of scaleOut
Bug: 20706976
Change-Id: Ia41aaa13b4081e4cddb842dd0df9258827bd093f
(cherry picked from commit 195c7486110287dbeab91bca5e1510e30df95060)
diff --git a/src/com/android/contacts/common/widget/FloatingActionButtonController.java b/src/com/android/contacts/common/widget/FloatingActionButtonController.java
index b06cda1..81ace42 100644
--- a/src/com/android/contacts/common/widget/FloatingActionButtonController.java
+++ b/src/com/android/contacts/common/widget/FloatingActionButtonController.java
@@ -159,6 +159,16 @@
}
/**
+ * Immediately remove the affects of the last call to {@link #scaleOut}.
+ */
+ public void resetIn() {
+ mFloatingActionButton.setAlpha(1);
+ mFloatingActionButton.setVisibility(View.VISIBLE);
+ mFloatingActionButtonContainer.setScaleX(1);
+ mFloatingActionButtonContainer.setScaleY(1);
+ }
+
+ /**
* Scales the floating action button from its actual dimensions to no height and width. This is
* an animation for hiding the floating action button.
*/