summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/PagedViewCellLayout.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/launcher2/PagedViewCellLayout.java')
-rw-r--r--src/com/android/launcher2/PagedViewCellLayout.java13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/com/android/launcher2/PagedViewCellLayout.java b/src/com/android/launcher2/PagedViewCellLayout.java
index 6f73e6341..9ce177b76 100644
--- a/src/com/android/launcher2/PagedViewCellLayout.java
+++ b/src/com/android/launcher2/PagedViewCellLayout.java
@@ -86,17 +86,6 @@ public class PagedViewCellLayout extends ViewGroup implements Page {
return mCellHeight;
}
- void destroyHardwareLayers() {
- // called when a page is no longer visible (triggered by loadAssociatedPages ->
- // removeAllViewsOnPage)
- setLayerType(LAYER_TYPE_NONE, null);
- }
-
- void createHardwareLayers() {
- // called when a page is visible (triggered by loadAssociatedPages -> syncPageItems)
- setLayerType(LAYER_TYPE_HARDWARE, null);
- }
-
@Override
public void cancelLongPress() {
super.cancelLongPress();
@@ -133,7 +122,7 @@ public class PagedViewCellLayout extends ViewGroup implements Page {
@Override
public void removeAllViewsOnPage() {
mChildren.removeAllViews();
- destroyHardwareLayers();
+ setLayerType(LAYER_TYPE_NONE, null);
}
@Override