am bb1d1319: Merge "More changes to improve memory usage during rotation" into honeycomb

* commit 'bb1d1319f202ccda89c03c5b9c972d5d91a04995':
  More changes to improve memory usage during rotation
This commit is contained in:
Patrick Dubroy
2011-01-16 17:35:33 -08:00
committed by Android Git Automerger
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -1521,6 +1521,8 @@ public final class Launcher extends Activity
mWorkspace.removeAllViews(); mWorkspace.removeAllViews();
mWorkspace = null; mWorkspace = null;
mDragController = null; mDragController = null;
ValueAnimator.clearAllAnimations();
} }
@Override @Override
+2
View File
@@ -287,6 +287,7 @@ public class Workspace extends SmoothPagedView
mDrawCustomizeTrayBackground = false; mDrawCustomizeTrayBackground = false;
} }
enableCacheUpdates(); enableCacheUpdates();
mAnimator = null;
} }
}; };
mShrinkAnimationListener = new AnimatorListenerAdapter() { mShrinkAnimationListener = new AnimatorListenerAdapter() {
@@ -297,6 +298,7 @@ public class Workspace extends SmoothPagedView
@Override @Override
public void onAnimationEnd(Animator animation) { public void onAnimationEnd(Animator animation) {
enableCacheUpdates(); enableCacheUpdates();
mAnimator = null;
} }
}; };
mSnapVelocity = 600; mSnapVelocity = 600;