Don't build bitmaps when running in GL.

Change-Id: I28c93256bca748be6a00698a6c41cbab5dd4a349
This commit is contained in:
Romain Guy committed 2010-10-26 14:29:35 -07:00
1 parent b3c81cc83c
commit 3cf4c03125
2 files changed
+6 -2

No files matched your search

@@ -250,7 +250,9 @@ public class PagedViewCellLayout extends ViewGroup {
final View view = getChildAt(i);
view.setDrawingCacheEnabled(enabled);
// Update the drawing caches
view.buildDrawingCache(true);
if (!view.isHardwareAccelerated()) {
view.buildDrawingCache(true);
}
}
}