Merge "Fix broken inset anims" into rvc-dev am: e858e30c46 am: 10331fec82
Change-Id: I55ae37f348b9a00e45b6129985efb44de4776dbe
This commit is contained in:
@@ -281,7 +281,7 @@ public class InsetsAnimationControlImpl implements WindowInsetsAnimationControll
|
|||||||
// If the system is controlling the insets source, the leash can be null.
|
// If the system is controlling the insets source, the leash can be null.
|
||||||
if (leash != null) {
|
if (leash != null) {
|
||||||
// TODO: use a better interpolation for fade.
|
// TODO: use a better interpolation for fade.
|
||||||
alpha = mFade ? ((float) maxInset / inset * 0.3f + 0.7f) : alpha;
|
alpha = mFade ? ((float) inset / maxInset * 0.3f + 0.7f) : alpha;
|
||||||
surfaceParams.add(new SurfaceParams(leash, side == ISIDE_FLOATING ? 1 : alpha,
|
surfaceParams.add(new SurfaceParams(leash, side == ISIDE_FLOATING ? 1 : alpha,
|
||||||
mTmpMatrix, null /* windowCrop */, 0 /* layer */, 0f /* cornerRadius*/,
|
mTmpMatrix, null /* windowCrop */, 0 /* layer */, 0f /* cornerRadius*/,
|
||||||
side == ISIDE_FLOATING ? state.getSource(source.getType()).isVisible()
|
side == ISIDE_FLOATING ? state.getSource(source.getType()).isVisible()
|
||||||
|
|||||||
Reference in New Issue
Block a user