Fixing potential crash when trying to create 0x0 bitmaps
Bug: 5926437 Change-Id: Id1284584104b1c4933525ea5e8744338718e4986
This commit is contained in:
parent
7bdeb601f9
commit
c7e52f55d6
|
@ -1107,6 +1107,8 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
|
||||||
bitmapWidth = drawable.getIntrinsicWidth();
|
bitmapWidth = drawable.getIntrinsicWidth();
|
||||||
bitmapHeight = drawable.getIntrinsicHeight();
|
bitmapHeight = drawable.getIntrinsicHeight();
|
||||||
} else {
|
} else {
|
||||||
|
if (cellHSpan < 1) cellHSpan = 1;
|
||||||
|
if (cellVSpan < 1) cellVSpan = 1;
|
||||||
// Determine the size of the bitmap for the preview image we will generate
|
// Determine the size of the bitmap for the preview image we will generate
|
||||||
// TODO: This actually uses the apps customize cell layout params, where as we make want
|
// TODO: This actually uses the apps customize cell layout params, where as we make want
|
||||||
// the Workspace params for more accuracy.
|
// the Workspace params for more accuracy.
|
||||||
|
|
Loading…
Reference in New Issue