Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d4d1052 authored by Chong Zhang's avatar Chong Zhang Committed by android-build-merger
Browse files

Merge "Update divider controller\'s dim layer when the layer is changed" into nyc-dev

am: da3cd339

* commit 'da3cd339':
  Update divider controller's dim layer when the layer is changed

Change-Id: I2fded43912f168eada58da94ab20ec0b572a3154
parents e574888a da3cd339
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -353,7 +353,7 @@ public class DockedStackDividerController implements DimLayerUser {
            stack.getDimBounds(mTmpRect);
            if (mTmpRect.height() > 0 && mTmpRect.width() > 0) {
                mDimLayer.setBounds(mTmpRect);
                mDimLayer.show(mDisplayContent.mService.mLayersController.getResizeDimLayer(),
                mDimLayer.show(mService.mLayersController.getResizeDimLayer(),
                        alpha, 0 /* duration */);
            } else {
                visibleAndValid = false;
@@ -543,6 +543,9 @@ public class DockedStackDividerController implements DimLayerUser {
        } else if (mAnimatingForIme) {
            return animateForIme(now);
        } else {
            if (mDimLayer != null) {
                mDimLayer.setLayer(mService.mLayersController.getResizeDimLayer());
            }
            return false;
        }
    }
+0 −3
Original line number Diff line number Diff line
@@ -119,7 +119,6 @@ public class TaskStack implements DimLayer.DimLayerUser,
    // Whether the stack and all its tasks is currently being drag-resized
    private boolean mDragResizing;

    private final Rect mLastContentBounds = new Rect();
    private final Rect mTmpAdjustedBounds = new Rect();
    private boolean mAdjustedForIme;
    private boolean mImeGoingAway;
@@ -975,7 +974,6 @@ public class TaskStack implements DimLayer.DimLayerUser,
            contentBounds.bottom = imeTop;
        }

        mLastContentBounds.set(contentBounds);
        final int yOffset = displayContentRect.bottom - contentBounds.bottom;

        final int dividerWidth =
@@ -1085,7 +1083,6 @@ public class TaskStack implements DimLayer.DimLayerUser,
        }
        if (!adjust) {
            mTmpAdjustedBounds.setEmpty();
            mLastContentBounds.setEmpty();
        }
        setAdjustedBounds(mTmpAdjustedBounds);