diff options
author | Michael Jurka <mikejurka@google.com> | 2011-03-04 12:06:57 -0800 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2011-03-07 15:20:51 -0800 |
commit | abded66084680bb31cc7ea403c88f44f79a3c884 (patch) | |
tree | e1a64c9a31caf280e011ed12b9b8ade54a080c47 /src/com/android/launcher2/PagedViewCellLayoutChildren.java | |
parent | 320b2fb5eff8750d07dc9b4874c2ec0b92a601b8 (diff) | |
download | packages_apps_trebuchet-abded66084680bb31cc7ea403c88f44f79a3c884.zip packages_apps_trebuchet-abded66084680bb31cc7ea403c88f44f79a3c884.tar.gz packages_apps_trebuchet-abded66084680bb31cc7ea403c88f44f79a3c884.tar.bz2 |
improving performance of first AllApps/Customize animation
Change-Id: I71e5cc634f7e1346617d101efd6945c00484cab3
Diffstat (limited to 'src/com/android/launcher2/PagedViewCellLayoutChildren.java')
-rw-r--r-- | src/com/android/launcher2/PagedViewCellLayoutChildren.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher2/PagedViewCellLayoutChildren.java b/src/com/android/launcher2/PagedViewCellLayoutChildren.java index 27da02a..92ff461 100644 --- a/src/com/android/launcher2/PagedViewCellLayoutChildren.java +++ b/src/com/android/launcher2/PagedViewCellLayoutChildren.java @@ -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); } } |