File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12811,8 +12811,8 @@ public void buildDrawingCache(boolean autoScale) {
1281112811 final boolean opaque = drawingCacheBackgroundColor != 0 || isOpaque();
1281212812 final boolean use32BitCache = attachInfo != null && attachInfo.mUse32BitDrawingCache;
1281312813
12814- final int projectedBitmapSize = width * height * (opaque && !use32BitCache ? 2 : 4);
12815- final int drawingCacheSize =
12814+ final long projectedBitmapSize = width * height * (opaque && !use32BitCache ? 2 : 4);
12815+ final long drawingCacheSize =
1281612816 ViewConfiguration.get(mContext).getScaledMaximumDrawingCacheSize();
1281712817 if (width <= 0 || height <= 0 || projectedBitmapSize > drawingCacheSize) {
1281812818 if (width > 0 && height > 0) {
You can’t perform that action at this time.
0 commit comments