Do not pass invalid bounds for dim layer #2

Bug: 26396656
Change-Id: Icb0419489a1b7a756a4622383c4c2462ee0d8d90
This commit is contained in:
Jorim Jaggi
2016-01-05 15:40:17 +01:00
parent 7b371ddfbd
commit 10b89dc531

View File

@@ -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 */);