summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2015-03-05 10:25:49 -0800
committerd34d <clark@cyngn.com>2015-03-05 10:25:49 -0800
commit264109f570c950f6238d525e4477b38dbdf098d6 (patch)
treeca38147a61b5ee44ef2638c140551131ed49af72
parentc763e109e50209c6bd3e3c3e16ae3429199359c1 (diff)
downloadpackages_apps_ThemeChooser-264109f570c950f6238d525e4477b38dbdf098d6.zip
packages_apps_ThemeChooser-264109f570c950f6238d525e4477b38dbdf098d6.tar.gz
packages_apps_ThemeChooser-264109f570c950f6238d525e4477b38dbdf098d6.tar.bz2
Set FAB to GONE when showing list
Since the FAB is above the list, it is possible for the user to move the FAB since it is still "VISIBLE" with an alpha of 0. Change-Id: Ib1780d213ecde680e1ba0790447586ac2c6cebe4
-rw-r--r--src/com/cyngn/theme/perapptheming/PerAppThemingWindow.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/com/cyngn/theme/perapptheming/PerAppThemingWindow.java b/src/com/cyngn/theme/perapptheming/PerAppThemingWindow.java
index 0c17ebc..d33e7ed 100644
--- a/src/com/cyngn/theme/perapptheming/PerAppThemingWindow.java
+++ b/src/com/cyngn/theme/perapptheming/PerAppThemingWindow.java
@@ -580,7 +580,13 @@ public class PerAppThemingWindow extends Service implements OnTouchListener,
mDraggableIconImage.animate()
.alpha(0f)
- .setDuration(ANIMATION_DURATION);
+ .setDuration(ANIMATION_DURATION)
+ .withEndAction(new Runnable() {
+ @Override
+ public void run() {
+ mDraggableIcon.setVisibility(View.GONE);
+ }
+ });
setThemeListPosition(listSide);
mAdapter.setCurrentTheme(
@@ -595,6 +601,7 @@ public class PerAppThemingWindow extends Service implements OnTouchListener,
}
mThemeListLayout.circularHide(mParams.x + mDraggableIconImage.getWidth() / 2,
mParams.y + mDraggableIconImage.getHeight() / 2, ANIMATION_DURATION);
+ mDraggableIcon.setVisibility(View.VISIBLE);
mDraggableIconImage.animate()
.alpha(1f)
.setDuration(ANIMATION_DURATION)