Use less HW layers in All Apps

(saves memory)

Change-Id: Ib2beda7549662a787437c7aa043e7858357c051f
This commit is contained in:
Michael Jurka committed 2013-01-17 10:38:15 +01:00
1 parent ffc9f488a3
commit 47639b9c1d
4 files changed
+50 -26

No files matched your search

+2 -2
View File
@@ -1406,13 +1406,13 @@ public class Workspace extends SmoothPagedView
}
}
for (int i = 0; i < screenCount; i++) {
final CellLayout layout = (CellLayout) getChildAt(i);
final CellLayout layout = (CellLayout) getPageAt(i);
if (!(leftScreen <= i && i <= rightScreen && shouldDrawChild(layout))) {
layout.disableHardwareLayers();
}
}
for (int i = 0; i < screenCount; i++) {
final CellLayout layout = (CellLayout) getChildAt(i);
final CellLayout layout = (CellLayout) getPageAt(i);
if (leftScreen <= i && i <= rightScreen && shouldDrawChild(layout)) {
layout.enableHardwareLayers();
}