mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
improving performance of first AllApps/Customize animation
Change-Id: I71e5cc634f7e1346617d101efd6945c00484cab3
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user