summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Cohen <adamcohen@google.com>2011-08-01 15:43:31 -0700
committerAdam Cohen <adamcohen@google.com>2011-08-01 15:43:31 -0700
commit8182e5bc3c2d1a0140df345599b89369d457bb4a (patch)
tree8dc35a0785ac9018fa5a8c565bb53e3d6fefde47 /src
parent05e0f40e50574f50678a9e1461cb245cddc46abb (diff)
downloadandroid_packages_apps_Trebuchet-8182e5bc3c2d1a0140df345599b89369d457bb4a.tar.gz
android_packages_apps_Trebuchet-8182e5bc3c2d1a0140df345599b89369d457bb4a.tar.bz2
android_packages_apps_Trebuchet-8182e5bc3c2d1a0140df345599b89369d457bb4a.zip
Preventing StackView from clipping in software on Soju, issue 4225485
Change-Id: I97a5e38e18591a32310c1cb59ce958e6551e54e4
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher2/CellLayoutChildren.java2
-rw-r--r--src/com/android/launcher2/Workspace.java4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/launcher2/CellLayoutChildren.java b/src/com/android/launcher2/CellLayoutChildren.java
index 555bef76e..ac8c2ca16 100644
--- a/src/com/android/launcher2/CellLayoutChildren.java
+++ b/src/com/android/launcher2/CellLayoutChildren.java
@@ -150,7 +150,7 @@ public class CellLayoutChildren extends ViewGroup {
final View view = getChildAt(i);
view.setDrawingCacheEnabled(enabled);
// Update the drawing caches
- if (!view.isHardwareAccelerated()) {
+ if (!view.isHardwareAccelerated() && enabled) {
view.buildDrawingCache(true);
}
}
diff --git a/src/com/android/launcher2/Workspace.java b/src/com/android/launcher2/Workspace.java
index ecc548397..57d176047 100644
--- a/src/com/android/launcher2/Workspace.java
+++ b/src/com/android/launcher2/Workspace.java
@@ -1289,6 +1289,10 @@ public class Workspace extends SmoothPagedView
for (int i = 0; i < screenCount; i++) {
final CellLayout layout = (CellLayout) getChildAt(i);
layout.setChildrenDrawnWithCacheEnabled(false);
+ // In software mode, we don't want the items to continue to be drawn into bitmaps
+ if (!isHardwareAccelerated()) {
+ layout.setChildrenDrawingCacheEnabled(false);
+ }
}
}