diff options
author | Michael Jurka <mikejurka@google.com> | 2011-01-28 15:20:01 -0800 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2011-01-29 18:26:09 -0800 |
commit | cf6125c2d30ce02d8ab6cbe8e37a20f6a831e216 (patch) | |
tree | f1d846a828c1221ddc9300f0348b3614b51c8a64 /src/com/android/launcher2/CellLayout.java | |
parent | e1dc51bce0764ba5a567145b0f4c78aa5b24fe67 (diff) | |
download | android_packages_apps_Trebuchet-cf6125c2d30ce02d8ab6cbe8e37a20f6a831e216.tar.gz android_packages_apps_Trebuchet-cf6125c2d30ce02d8ab6cbe8e37a20f6a831e216.tar.bz2 android_packages_apps_Trebuchet-cf6125c2d30ce02d8ab6cbe8e37a20f6a831e216.zip |
Improving performance of state transitions
- Caching CellLayouts to bitmaps when they're small again
- Enabling hardware layers on customize tray/all apps during transition
Change-Id: Ia4f5f7b608a9d013ed48b990551fd1b9de503b32
Diffstat (limited to 'src/com/android/launcher2/CellLayout.java')
-rw-r--r-- | src/com/android/launcher2/CellLayout.java | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/com/android/launcher2/CellLayout.java b/src/com/android/launcher2/CellLayout.java index 448b76604..9b173be08 100644 --- a/src/com/android/launcher2/CellLayout.java +++ b/src/com/android/launcher2/CellLayout.java @@ -50,7 +50,7 @@ import android.view.animation.LayoutAnimationController; import java.util.Arrays; -public class CellLayout extends ViewGroup { +public class CellLayout extends CachedViewGroup { static final String TAG = "CellLayout"; private int mCellWidth; @@ -363,14 +363,6 @@ public class CellLayout extends ViewGroup { } } - public void disableCacheUpdates() { - mChildren.disableCacheUpdates(); - } - - public void enableCacheUpdates() { - mChildren.enableCacheUpdates(); - } - @Override protected void onDraw(Canvas canvas) { // When we're large, we are either drawn in a "hover" state (ie when dragging an item to @@ -542,7 +534,7 @@ public class CellLayout extends ViewGroup { } public void removeViewWithoutMarkingCells(View view) { - mChildren.removeViewWithoutMarkingCells(view); + mChildren.removeView(view); } @Override |