Bug #
7257930
Change-Id: I28d08024fabe8103251d480524b0b0f2fd2d2aba
final boolean opaque = drawingCacheBackgroundColor != 0 || isOpaque();
final boolean use32BitCache = attachInfo != null && attachInfo.mUse32BitDrawingCache;
- final int projectedBitmapSize = width * height * (opaque && !use32BitCache ? 2 : 4);
- final int drawingCacheSize =
+ final long projectedBitmapSize = width * height * (opaque && !use32BitCache ? 2 : 4);
+ final long drawingCacheSize =
ViewConfiguration.get(mContext).getScaledMaximumDrawingCacheSize();
if (width <= 0 || height <= 0 || projectedBitmapSize > drawingCacheSize) {
if (width > 0 && height > 0) {