summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherStateTransitionAnimation.java
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2016-07-27 11:54:02 -0700
committerHyunyoung Song <hyunyoungs@google.com>2016-07-27 11:54:02 -0700
commite3876e8dd0a6b6948c5365af9f88709301bbb536 (patch)
tree46a03a6cc0368d8f5c17a65909d4ce4a77e3f2f9 /src/com/android/launcher3/LauncherStateTransitionAnimation.java
parent0dc7e91d5ce2bacf52fe443f3a0907d45c1a8395 (diff)
downloadandroid_packages_apps_Trebuchet-e3876e8dd0a6b6948c5365af9f88709301bbb536.tar.gz
android_packages_apps_Trebuchet-e3876e8dd0a6b6948c5365af9f88709301bbb536.tar.bz2
android_packages_apps_Trebuchet-e3876e8dd0a6b6948c5365af9f88709301bbb536.zip
Change default animation duration for all apps open and close.
> Also set different interpolator for all apps opening clicking the caret Change-Id: I7f9b764a8bf8bb7c38d94acbd964e912f22d6941
Diffstat (limited to 'src/com/android/launcher3/LauncherStateTransitionAnimation.java')
-rw-r--r--src/com/android/launcher3/LauncherStateTransitionAnimation.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/com/android/launcher3/LauncherStateTransitionAnimation.java b/src/com/android/launcher3/LauncherStateTransitionAnimation.java
index 9cb842742..b0358e8c5 100644
--- a/src/com/android/launcher3/LauncherStateTransitionAnimation.java
+++ b/src/com/android/launcher3/LauncherStateTransitionAnimation.java
@@ -237,6 +237,8 @@ public class LauncherStateTransitionAnimation {
final Resources res = mLauncher.getResources();
final boolean material = Utilities.ATLEAST_LOLLIPOP;
final int revealDuration = res.getInteger(R.integer.config_overlayRevealTime);
+ final int revealDurationSlide = res.getInteger(R.integer.config_overlaySlideRevealTime);
+
final int itemsAlphaStagger = res.getInteger(R.integer.config_overlayItemsAlphaStagger);
final View fromView = mLauncher.getWorkspace();
@@ -435,7 +437,7 @@ public class LauncherStateTransitionAnimation {
pCb.onTransitionComplete();
}
});
- mAllAppsController.animateToAllApps(animation, revealDuration);
+ mAllAppsController.animateToAllApps(animation, revealDurationSlide);
dispatchOnLauncherTransitionPrepare(fromView, animated, false);
dispatchOnLauncherTransitionPrepare(toView, animated, false);
@@ -680,6 +682,7 @@ public class LauncherStateTransitionAnimation {
final Resources res = mLauncher.getResources();
final boolean material = Utilities.ATLEAST_LOLLIPOP;
final int revealDuration = res.getInteger(R.integer.config_overlayRevealTime);
+ final int revealDurationSlide = res.getInteger(R.integer.config_overlaySlideRevealTime);
final int itemsAlphaStagger =
res.getInteger(R.integer.config_overlayItemsAlphaStagger);
@@ -918,7 +921,7 @@ public class LauncherStateTransitionAnimation {
}
});
- mAllAppsController.animateToWorkspace(animation, revealDuration);
+ mAllAppsController.animateToWorkspace(animation, revealDurationSlide);
// Dispatch the prepare transition signal
dispatchOnLauncherTransitionPrepare(fromView, animated, multiplePagesVisible);