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

Commit ba5a9d2a authored by Sanjeev Jakkilinki's avatar Sanjeev Jakkilinki Committed by Arne Coucheron
Browse files

frameworks/base: reduce the setTransactions

reduce the setTransactions from window manager service to
reduce the janks during animations for more numbered layers

Change-Id: Idb7a6d65b0602a6bbee01dc88411f1ebee453515
parent 2447a289
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -193,14 +193,15 @@ public class DimLayer {
        }

        if (mDimSurface != null) {
            if(!mLastBounds.equals(mBounds)) {
                 mDimSurface.setPosition(mBounds.left, mBounds.top);
                 mDimSurface.setSize(mBounds.width(), mBounds.height());
                 if (DEBUG_DIM_LAYER) Slog.v(TAG,
                        "adjustBounds user=" + mUser.toShortString() + " mBounds=" + mBounds);
        }

                 mLastBounds.set(mBounds);
           }
        }
    }

    private void getBoundsForFullscreen(Rect outBounds) {
        final int dw, dh;