mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Use less HW layers in All Apps
(saves memory) Change-Id: Ib2beda7549662a787437c7aa043e7858357c051f
This commit is contained in:
@@ -98,19 +98,11 @@ public class PagedViewGridLayout extends GridLayout implements Page {
|
||||
return result;
|
||||
}
|
||||
|
||||
void destroyHardwareLayer() {
|
||||
setLayerType(LAYER_TYPE_NONE, null);
|
||||
}
|
||||
|
||||
void createHardwareLayer() {
|
||||
setLayerType(LAYER_TYPE_HARDWARE, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeAllViewsOnPage() {
|
||||
removeAllViews();
|
||||
mOnLayoutListener = null;
|
||||
destroyHardwareLayer();
|
||||
setLayerType(LAYER_TYPE_NONE, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user