summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/CellLayoutChildren.java
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2011-01-28 15:20:01 -0800
committerMichael Jurka <mikejurka@google.com>2011-01-29 18:26:09 -0800
commitcf6125c2d30ce02d8ab6cbe8e37a20f6a831e216 (patch)
treef1d846a828c1221ddc9300f0348b3614b51c8a64 /src/com/android/launcher2/CellLayoutChildren.java
parente1dc51bce0764ba5a567145b0f4c78aa5b24fe67 (diff)
downloadandroid_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/CellLayoutChildren.java')
-rw-r--r--src/com/android/launcher2/CellLayoutChildren.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/launcher2/CellLayoutChildren.java b/src/com/android/launcher2/CellLayoutChildren.java
index 09ab26688..a6f7f4214 100644
--- a/src/com/android/launcher2/CellLayoutChildren.java
+++ b/src/com/android/launcher2/CellLayoutChildren.java
@@ -18,11 +18,12 @@ package com.android.launcher2;
import android.app.WallpaperManager;
import android.content.Context;
-import android.graphics.Canvas;
import android.graphics.Rect;
import android.view.View;
+import android.view.ViewGroup;
+import android.view.View.MeasureSpec;
-public class CellLayoutChildren extends CachedViewGroup {
+public class CellLayoutChildren extends ViewGroup {
static final String TAG = "CellLayoutChildren";
// These are temporary variables to prevent having to allocate a new object just to
@@ -94,7 +95,6 @@ public class CellLayoutChildren extends CachedViewGroup {
@Override
protected void onLayout(boolean changed, int l, int t, int r, int b) {
- super.onLayout(changed, l, t, r, b);
int count = getChildCount();
for (int i = 0; i < count; i++) {
final View child = getChildAt(i);