Use less HW layers in All Apps
(saves memory) Change-Id: Ib2beda7549662a787437c7aa043e7858357c051f
This commit is contained in:
1 parent
ffc9f488a3
commit
47639b9c1d
4 files changed
+50
-26
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user