diff options
| author | 2020-03-31 14:43:25 -0700 | |
|---|---|---|
| committer | 2020-03-31 14:43:25 -0700 | |
| commit | 4c101c3f68308e82b10415441447d1586bf8030a (patch) | |
| tree | a7c88c77fb7b65698357d6dea61c27b1acdf942b | |
| parent | 89f012524f74ec823da97089b09bd7e1bbadaa17 (diff) | |
InsetsSourceConsumer: Release directly
Since we copy the InsetSourceControl to the animation
runner, we don't need to release the InsetsSourceConsumer
copy from the render thread, as it wont be used there.
Bug: 150805473
Test: Existing tests pass.
Change-Id: I03cb69e17e036237410472e8b4601b61fc40bc0e
| -rw-r--r-- | core/java/android/view/InsetsSourceConsumer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/view/InsetsSourceConsumer.java b/core/java/android/view/InsetsSourceConsumer.java index 360195df6625..69bab4df2cae 100644 --- a/core/java/android/view/InsetsSourceConsumer.java +++ b/core/java/android/view/InsetsSourceConsumer.java @@ -121,7 +121,7 @@ public class InsetsSourceConsumer { } } if (lastControl != null) { - lastControl.release(mController::releaseSurfaceControlFromRt); + lastControl.release(SurfaceControl::release); } } |