summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/Launcher.java
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2010-12-17 20:15:06 -0800
committerMichael Jurka <mikejurka@google.com>2010-12-17 20:44:15 -0800
commit8edd75c8bb0729a10cb39f614183e3e9ae4288e8 (patch)
tree3a10364a68e0eb430842bf83c6087bff80a78dbb /src/com/android/launcher2/Launcher.java
parent800242b5b7a066c3d0ddcc0e0aee32fb4d64d611 (diff)
downloadandroid_packages_apps_Trebuchet-8edd75c8bb0729a10cb39f614183e3e9ae4288e8.tar.gz
android_packages_apps_Trebuchet-8edd75c8bb0729a10cb39f614183e3e9ae4288e8.tar.bz2
android_packages_apps_Trebuchet-8edd75c8bb0729a10cb39f614183e3e9ae4288e8.zip
removing workaround for fixed animator bug
Change-Id: I244b1c83f5659cf55e1f172ae33f63adbdcf2ea5
Diffstat (limited to 'src/com/android/launcher2/Launcher.java')
-rw-r--r--src/com/android/launcher2/Launcher.java21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index bf72add66..40cd74b04 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -22,6 +22,7 @@ import com.android.launcher.R;
import com.android.launcher2.Workspace.ShrinkState;
import android.animation.Animator;
+import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.animation.PropertyValuesHolder;
@@ -337,9 +338,9 @@ public final class Launcher extends Activity
ValueAnimator alphaAnim = ObjectAnimator.ofFloat(mCustomizePagedView,
"alpha", alpha, 0.0f);
alphaAnim.setDuration(duration);
- alphaAnim.addListener(new LauncherAnimatorListenerAdapter() {
+ alphaAnim.addListener(new AnimatorListenerAdapter() {
@Override
- public void onAnimationEndOrCancel(Animator animation) {
+ public void onAnimationEnd(Animator animation) {
String tag = mHomeCustomizationDrawer.getCurrentTabTag();
if (tag == WIDGETS_TAG) {
mCustomizePagedView.setCustomizationFilter(
@@ -2541,13 +2542,13 @@ public final class Launcher extends Activity
if (seq != null) {
Animator anim = ObjectAnimator.ofFloat(view, "alpha", show ? 1.0f : 0.0f);
anim.setDuration(duration);
- anim.addListener(new LauncherAnimatorListenerAdapter() {
+ anim.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationStart(Animator animation) {
if (showing) showToolbarButton(view);
}
@Override
- public void onAnimationEndOrCancel(Animator animation) {
+ public void onAnimationEnd(Animator animation) {
if (hiding) hideToolbarButton(view);
}
});
@@ -2648,7 +2649,7 @@ public final class Launcher extends Activity
scaleAnim.setDuration(duration);
scaleAnim.setInterpolator(new Workspace.ZoomOutInterpolator());
- scaleAnim.addListener(new LauncherAnimatorListenerAdapter() {
+ scaleAnim.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationStart(Animator animation) {
// Prepare the position
@@ -2658,7 +2659,7 @@ public final class Launcher extends Activity
toView.setAlpha(1.0f);
}
@Override
- public void onAnimationEndOrCancel(Animator animation) {
+ public void onAnimationEnd(Animator animation) {
// If we don't set the final scale values here, if this animation is cancelled
// it will have the wrong scale value and subsequent cameraPan animations will
// not fix that
@@ -2731,9 +2732,9 @@ public final class Launcher extends Activity
ValueAnimator alphaAnim = ObjectAnimator.ofPropertyValuesHolder(fromView,
PropertyValuesHolder.ofFloat("alpha", 1.0f, 0.0f));
alphaAnim.setDuration(res.getInteger(R.integer.config_allAppsFadeOutTime));
- alphaAnim.addListener(new LauncherAnimatorListenerAdapter() {
+ alphaAnim.addListener(new AnimatorListenerAdapter() {
@Override
- public void onAnimationEndOrCancel(Animator animation) {
+ public void onAnimationEnd(Animator animation) {
fromView.setVisibility(View.GONE);
}
});
@@ -2793,7 +2794,7 @@ public final class Launcher extends Activity
if (animated) {
if (mStateAnimation != null) mStateAnimation.cancel();
mStateAnimation = new AnimatorSet();
- mStateAnimation.addListener(new LauncherAnimatorListenerAdapter() {
+ mStateAnimation.addListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationStart(Animator animation) {
toView.setVisibility(View.VISIBLE);
@@ -2801,7 +2802,7 @@ public final class Launcher extends Activity
toView.setAlpha(1.0f);
}
@Override
- public void onAnimationEndOrCancel(Animator animation) {
+ public void onAnimationEnd(Animator animation) {
fromView.setVisibility(View.GONE);
}
});