Merge "Update background crop animation threshold" into oc-dr1-dev am: 79e11e4429

am: 27ad3f1e48

Change-Id: I35d6b6b8dfb064b7fd7ae1d8ee24fce4aebd5d27
This commit is contained in:
Andrii Kulian
2017-08-12 06:24:54 +00:00
committed by android-build-merger

View File

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