summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2016-02-17 12:48:40 -0800
committerTom Powell <zifnab@zifnab06.net>2017-03-26 16:17:18 -0700
commit517360659d214efac54dd5ad07bc54f508e5788c (patch)
tree77a028c63863c53f524bcbcd664ccf38af180f46 /src/com
parentc9b4d0a2001084b46819e6e9af2aab4cc65422cd (diff)
downloadandroid_packages_apps_Trebuchet-517360659d214efac54dd5ad07bc54f508e5788c.tar.gz
android_packages_apps_Trebuchet-517360659d214efac54dd5ad07bc54f508e5788c.tar.bz2
android_packages_apps_Trebuchet-517360659d214efac54dd5ad07bc54f508e5788c.zip
Trebuchet: Don't do reveal animation from apps/widgets to overview
Issued-id: OPO-423 Change-Id: I218605be2215d5f6f8a2b2b8b786e0fdddb00643
Diffstat (limited to 'src/com')
-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() {