Do not pass invalid bounds for dim layer #2
Bug: 26396656 Change-Id: Icb0419489a1b7a756a4622383c4c2462ee0d8d90
This commit is contained in:
@@ -175,7 +175,7 @@ public class DockedStackDividerController implements DimLayerUser {
|
||||
boolean visibleAndValid = visible && stack != null;
|
||||
if (visibleAndValid) {
|
||||
stack.getDimBounds(mTmpRect);
|
||||
if (mTmpRect.height() > 0) {
|
||||
if (mTmpRect.height() > 0 && mTmpRect.width() > 0) {
|
||||
mDimLayer.setBounds(mTmpRect);
|
||||
mDimLayer.show(mDisplayContent.mService.mLayersController.getResizeDimLayer(),
|
||||
alpha, 0 /* duration */);
|
||||
|
||||
Reference in New Issue
Block a user