improving performance of first AllApps/Customize animation

Change-Id: I71e5cc634f7e1346617d101efd6945c00484cab3
This commit is contained in:
Michael Jurka
2011-03-04 12:06:57 -08:00
parent 320b2fb5ef
commit abded66084
8 changed files with 123 additions and 39 deletions

View File

@@ -139,12 +139,12 @@ public class PagedViewCellLayoutChildren extends ViewGroup {
}
void destroyHardwareLayer() {
if (getLayerType() == LAYER_TYPE_HARDWARE) {
if (getLayerType() != LAYER_TYPE_NONE) {
setLayerType(LAYER_TYPE_NONE, null);
}
}
void createHardwareLayer() {
if (getLayerType() == LAYER_TYPE_NONE) {
if (getLayerType() != LAYER_TYPE_HARDWARE) {
setLayerType(LAYER_TYPE_HARDWARE, null);
}
}