summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2016-02-17 12:48:40 -0800
committerEd Carrigan <cretin45@gmail.com>2016-02-17 13:38:03 -0800
commit30296dc60c72d893b66f872df674064de1d7bb21 (patch)
tree46474e08716cd00a887ed17c4f30983bf8af2529
parentc4a7b2df605e0b7dab6cb44ef975b44a70d1d907 (diff)
downloadandroid_packages_apps_Trebuchet-30296dc60c72d893b66f872df674064de1d7bb21.tar.gz
android_packages_apps_Trebuchet-30296dc60c72d893b66f872df674064de1d7bb21.tar.bz2
android_packages_apps_Trebuchet-30296dc60c72d893b66f872df674064de1d7bb21.zip
Trebuchet: Don't do reveal animation from apps/widgets to overview
Issued-id: OPO-423 Change-Id: I218605be2215d5f6f8a2b2b8b786e0fdddb00643 (cherry picked from commit 9be4dbbc7fc6b743469fe719dacbe5a77abb4028)
-rw-r--r--src/com/android/launcher3/LauncherStateTransitionAnimation.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/android/launcher3/LauncherStateTransitionAnimation.java b/src/com/android/launcher3/LauncherStateTransitionAnimation.java
index 4c97727c1..2bdee3790 100644
--- a/src/com/android/launcher3/LauncherStateTransitionAnimation.java
+++ b/src/com/android/launcher3/LauncherStateTransitionAnimation.java
@@ -502,6 +502,9 @@ public class LauncherStateTransitionAnimation {
final AnimatorSet animation = LauncherAnimUtils.createAnimatorSet();
final Resources res = mLauncher.getResources();
final boolean material = Utilities.ATLEAST_LOLLIPOP;
+ final boolean doReveal = !((mLauncher.mState == Launcher.State.APPS ||
+ mLauncher.mState == Launcher.State.WIDGETS) &&
+ toWorkspaceState == Workspace.State.OVERVIEW);
final int revealDuration = res.getInteger(R.integer.config_overlayRevealTime);
final int itemsAlphaStagger =
res.getInteger(R.integer.config_overlayItemsAlphaStagger);
@@ -537,7 +540,7 @@ public class LauncherStateTransitionAnimation {
// hideAppsCustomizeHelper is called in some cases when it is already hidden
// don't perform all these no-op animations. In particularly, this was causing
// the all-apps button to pop in and out.
- if (fromView.getVisibility() == View.VISIBLE) {
+ if (doReveal && fromView.getVisibility() == View.VISIBLE) {
int width = revealView.getMeasuredWidth();
int height = revealView.getMeasuredHeight();
float revealRadius = (float) Math.hypot(width / 2, height / 2);
@@ -638,6 +641,8 @@ public class LauncherStateTransitionAnimation {
dispatchOnLauncherTransitionPrepare(fromView, animated, true);
dispatchOnLauncherTransitionPrepare(toView, animated, true);
+ } else {
+ fromView.setVisibility(View.GONE);
}
animation.addListener(new AnimatorListenerAdapter() {