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

Commit 6d617dfc authored by Andrii Kulian's avatar Andrii Kulian Committed by android-build-merger
Browse files

Merge "Update background crop animation threshold" into oc-dr1-dev am: 79e11e44 am: 27ad3f1e

am: 270a90e5

Change-Id: Ica9729c7aef10ad4772bcd1b038c8b16cd8797a4
parents f8e83002 270a90e5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -189,7 +189,7 @@ class SurfaceControlWithBackground extends SurfaceControl {
        // for background width/height then screen size at the end of the animation. Will round when
        // the value is smaller then some empiric epsilon. However, this should be fixed by
        // computing correct frames for letterboxed windows in WindowState.
        d = d < 0.02f ? 0 : d;
        d = d < 0.025f ? 0 : d;
        mWindowSurfaceController.getContainerRect(mTmpContainerRect);
        final int backgroundWidth =
                (int) (crop.width() + (mTmpContainerRect.width() - mLastWidth) * (1 - d) + 0.5);