Prevent CellLayouts from making calls to saveLayerAlpha()

Change-Id: I6fe1d9b39a765f4a960f7940c7afc94c784efa16
This commit is contained in:
Romain Guy
2013-03-06 15:31:40 -08:00
parent ce3cbd145b
commit 388e8c5dbe
@@ -181,10 +181,6 @@ public class CellLayout extends ViewGroup {
// A ViewGroup usually does not draw, but CellLayout needs to draw a rectangle to show
// the user where a dragged item will land when dropped.
setWillNotDraw(false);
// CellLayout guarantees its children are not laid out outside of its bounds,
// child clipping is thus unnecessary and disabling it offers better performance
// when we rotate the whole layout
setClipChildren(false);
setClipToPadding(false);
mLauncher = (Launcher) context;