summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/AppsCustomizePagedView.java
diff options
context:
space:
mode:
authorScott Mertz <scott@cyngn.com>2015-10-31 15:14:12 -0700
committerScott Mertz <scott@cyngn.com>2015-11-05 12:05:07 -0800
commit8e92b4a03507f61cf9c65ae00ac0d43656ee5929 (patch)
tree1f7d5e40000536a43a1437f4836e2c379bacf82d /src/com/android/launcher3/AppsCustomizePagedView.java
parent1a3f2636ae98e6457b05dde8715b5754397c6ea7 (diff)
downloadandroid_packages_apps_Trebuchet-8e92b4a03507f61cf9c65ae00ac0d43656ee5929.tar.gz
android_packages_apps_Trebuchet-8e92b4a03507f61cf9c65ae00ac0d43656ee5929.tar.bz2
android_packages_apps_Trebuchet-8e92b4a03507f61cf9c65ae00ac0d43656ee5929.zip
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. CYNGNOS-1220 Change-Id: I26fcca8545cc187a29388287071568b5cd9d642b (cherry picked from commit 88dc0de52961f2337b9c308a5506acfa50940722)
Diffstat (limited to 'src/com/android/launcher3/AppsCustomizePagedView.java')
-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 33c90a3ad..ab5e03c3d 100644
--- a/src/com/android/launcher3/AppsCustomizePagedView.java
+++ b/src/com/android/launcher3/AppsCustomizePagedView.java
@@ -1557,6 +1557,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) {