summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Mertz <scott@cyngn.com>2015-10-31 22:14:12 (GMT)
committerScott Mertz <scott@cyngn.com>2015-10-31 22:41:46 (GMT)
commit88dc0de52961f2337b9c308a5506acfa50940722 (patch)
tree5f0b798cee485fde4b494e6c424fa1dbe5745f42
parent56396c847f56b2b48dcfbda70235686da0e9cb07 (diff)
downloadandroid_packages_apps_Trebuchet-88dc0de52961f2337b9c308a5506acfa50940722.zip
android_packages_apps_Trebuchet-88dc0de52961f2337b9c308a5506acfa50940722.tar.gz
android_packages_apps_Trebuchet-88dc0de52961f2337b9c308a5506acfa50940722.tar.bz2
Trebuchet: Enable HW Layers in app drawer
HW Layers were taken out in the initial commit for Trebuchet app drawer transitions. These transitions don't scale for large resolutions when using software composition. Switch back to HW layers. Change-Id: I26fcca8545cc187a29388287071568b5cd9d642b
-rw-r--r--src/com/android/launcher3/AppsCustomizePagedView.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/com/android/launcher3/AppsCustomizePagedView.java b/src/com/android/launcher3/AppsCustomizePagedView.java
index 044dea0..fc07fa1 100644
--- a/src/com/android/launcher3/AppsCustomizePagedView.java
+++ b/src/com/android/launcher3/AppsCustomizePagedView.java
@@ -1564,6 +1564,17 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
layout.setLayerType(LAYER_TYPE_NONE, null);
}
}
+
+ for (int i = 0; i < screenCount; i++) {
+ final View layout = (View) getPageAt(i);
+
+ if (leftScreen <= i && i <= rightScreen &&
+ (i == forceDrawScreen || shouldDrawChild(layout))) {
+ if (layout.getLayerType() != LAYER_TYPE_HARDWARE) {
+ layout.setLayerType(LAYER_TYPE_HARDWARE, null);
+ }
+ }
+ }
}
protected void overScroll(float amount) {