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

Commit 9425116b authored by Andrii Kulian's avatar Andrii Kulian
Browse files

Check only task's override config for adjusting bounds

We're only using task override when setting bounds, so no need
to update if merged override config is non-empty but task override
is empty.

Bug: 37648662
Test: Existing tests still pass
Change-Id: I73fd91983bf562dc888081b2a3d590b629aad255
parent 105f55ee
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -382,9 +382,7 @@ class Task extends WindowContainer<AppWindowToken> implements DimLayer.DimLayerU
     *                    the adjusted bounds's top.
     */
    void alignToAdjustedBounds(Rect adjustedBounds, Rect tempInsetBounds, boolean alignBottom) {
        // Task override config might be empty, while display or stack override config isn't, so
        // we have to check merged override config here.
        if (!isResizeable() || Configuration.EMPTY.equals(getMergedOverrideConfiguration())) {
        if (!isResizeable() || Configuration.EMPTY.equals(getOverrideConfiguration())) {
            return;
        }