Skip to content
Commit 61d599e2 authored by Garfield Tan's avatar Garfield Tan
Browse files

Use WeakReference to hold target in values.

WeakHashMap holds strong references to values, so if we would like to
have them cleaned up automatically we need make sure we don't reference
the key strongly in the value.

Bug: 149918957
Test: Bubble animation looks OK.
Test: No GC root paths through PhysicsAnimator.
Test: atest PhysicsAnimator
Change-Id: I4e701bfb7f91662e18c317eaf895b5ea31e0860d
parent 9f15ba2e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment