summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherStateTransitionAnimation.java
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2016-06-08 16:29:32 -0700
committerHyunyoung Song <hyunyoungs@google.com>2016-06-08 17:01:59 -0700
commit74b5af35291f620d2f09f313f2e9bd9f817b9d27 (patch)
tree273063f2f9c2a777a4031d32165b15fdb422fb28 /src/com/android/launcher3/LauncherStateTransitionAnimation.java
parentb7c2e99ffbedf0f38edfbf433087acac8620e36f (diff)
downloadandroid_packages_apps_Trebuchet-74b5af35291f620d2f09f313f2e9bd9f817b9d27.tar.gz
android_packages_apps_Trebuchet-74b5af35291f620d2f09f313f2e9bd9f817b9d27.tar.bz2
android_packages_apps_Trebuchet-74b5af35291f620d2f09f313f2e9bd9f817b9d27.zip
Fixes to all apps pull up work
b/28917826 - 2+ workspace page also slides up - pull up touch interaction doesn't trigger only when yslop > xslop - animation duration should be set independently when all apps button is used. - workspace state is correctly set (drag and drop from the trays work) - after lock screen, hotseat is positioned correctly - Remove initial jump when sliding up - Improved tuning on sliding - Alpha value set differently on backbround and content of all apps Still not fixed: - Landscape - Search edit text box styling - All apps scroll bar Change-Id: I817094b0f1ada5052ee604539459f556a99cadf1
Diffstat (limited to 'src/com/android/launcher3/LauncherStateTransitionAnimation.java')
-rw-r--r--src/com/android/launcher3/LauncherStateTransitionAnimation.java25
1 files changed, 15 insertions, 10 deletions
diff --git a/src/com/android/launcher3/LauncherStateTransitionAnimation.java b/src/com/android/launcher3/LauncherStateTransitionAnimation.java
index 6cba2cb13..d62c62987 100644
--- a/src/com/android/launcher3/LauncherStateTransitionAnimation.java
+++ b/src/com/android/launcher3/LauncherStateTransitionAnimation.java
@@ -248,13 +248,12 @@ public class LauncherStateTransitionAnimation {
// Cancel the current animation
cancelAnimation();
- if (!FeatureFlags.LAUNCHER3_ALL_APPS_PULL_UP) {
- playCommonTransitionAnimations(toWorkspaceState, fromView, toView,
- animated, initialized, animation, revealDuration, layerViews);
- }
final View contentView = toView.getContentView();
if (!animated || !initialized) {
+ playCommonTransitionAnimations(toWorkspaceState, fromView, toView,
+ animated, initialized, animation, revealDuration, layerViews);
+
toView.setTranslationX(0.0f);
toView.setTranslationY(0.0f);
toView.setScaleX(1.0f);
@@ -277,6 +276,9 @@ public class LauncherStateTransitionAnimation {
return null;
}
if (animType == CIRCULAR_REVEAL) {
+ playCommonTransitionAnimations(toWorkspaceState, fromView, toView,
+ animated, initialized, animation, revealDuration, layerViews);
+
// Setup the reveal view animation
final View revealView = toView.getRevealView();
@@ -421,9 +423,10 @@ public class LauncherStateTransitionAnimation {
cleanupAnimation();
pCb.onTransitionComplete();
}
-
});
- mAllAppsController.animateToAllApps(animation);
+ mAllAppsController.animateToAllApps(animation, revealDuration);
+ playCommonTransitionAnimations(toWorkspaceState, fromView, toView,
+ animated, initialized, animation, revealDuration, layerViews);
dispatchOnLauncherTransitionPrepare(fromView, animated, false);
dispatchOnLauncherTransitionPrepare(toView, animated, false);
@@ -672,11 +675,9 @@ public class LauncherStateTransitionAnimation {
boolean multiplePagesVisible = toWorkspaceState.hasMultipleVisiblePages;
- if (!FeatureFlags.LAUNCHER3_ALL_APPS_PULL_UP) {
+ if (!animated || !initialized) {
playCommonTransitionAnimations(toWorkspaceState, fromView, toView,
animated, initialized, animation, revealDuration, layerViews);
- }
- if (!animated || !initialized) {
if (FeatureFlags.LAUNCHER3_ALL_APPS_PULL_UP) {
mAllAppsController.finishPullDown();
}
@@ -697,6 +698,8 @@ public class LauncherStateTransitionAnimation {
return null;
}
if (animType == CIRCULAR_REVEAL) {
+ playCommonTransitionAnimations(toWorkspaceState, fromView, toView,
+ animated, initialized, animation, revealDuration, layerViews);
final View revealView = fromView.getRevealView();
final View contentView = fromView.getContentView();
@@ -876,7 +879,9 @@ public class LauncherStateTransitionAnimation {
}
});
- mAllAppsController.animateToWorkspace(animation);
+ mAllAppsController.animateToWorkspace(animation, revealDuration);
+ playCommonTransitionAnimations(toWorkspaceState, fromView, toView,
+ animated, initialized, animation, revealDuration, layerViews);
// Dispatch the prepare transition signal
dispatchOnLauncherTransitionPrepare(fromView, animated, false);