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

This commit is contained in:
Patrick Dubroy
2011-01-16 17:33:44 -08:00
committed by Android (Google) Code Review
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 = null;
mDragController = null;
ValueAnimator.clearAllAnimations();
}
@Override
+2
View File
@@ -287,6 +287,7 @@ public class Workspace extends SmoothPagedView
mDrawCustomizeTrayBackground = false;
}
enableCacheUpdates();
mAnimator = null;
}
};
mShrinkAnimationListener = new AnimatorListenerAdapter() {
@@ -297,6 +298,7 @@ public class Workspace extends SmoothPagedView
@Override
public void onAnimationEnd(Animator animation) {
enableCacheUpdates();
mAnimator = null;
}
};
mSnapVelocity = 600;