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 @@ -12819,8 +12819,8 @@ public void buildDrawingCache(boolean autoScale) {
1281912819 final boolean opaque = drawingCacheBackgroundColor != 0 || isOpaque();
1282012820 final boolean use32BitCache = attachInfo != null && attachInfo.mUse32BitDrawingCache;
1282112821
12822- final int projectedBitmapSize = width * height * (opaque && !use32BitCache ? 2 : 4);
12823- final int drawingCacheSize =
12822+ final long projectedBitmapSize = width * height * (opaque && !use32BitCache ? 2 : 4);
12823+ final long drawingCacheSize =
1282412824 ViewConfiguration.get(mContext).getScaledMaximumDrawingCacheSize();
1282512825 if (width <= 0 || height <= 0 || projectedBitmapSize > drawingCacheSize) {
1282612826 if (width > 0 && height > 0) {
You can’t perform that action at this time.
0 commit comments