Don't build bitmaps when running in GL.

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

View File

@@ -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);
}
}
}