commit | bd72c464064f48ba5d79b680b40f9277d7753622 | [log] [tgz] |
---|---|---|
author | Jerome Gaillard <jgaillard@google.com> | Fri Mar 14 14:41:23 2025 +0000 |
committer | Jerome Gaillard <jgaillard@google.com> | Fri Mar 14 14:41:23 2025 +0000 |
tree | c4b889f7452544ed0c6285f185515d83eb8a2365 | |
parent | c436990e4fc8cf061931efed20ebdd68d226580e [diff] |
Use WeakReference in Pools Android uses static Pools to store a lot of different objects in order to avoid having to recreate new ones constantly. This changes Pools to store WeakReferences instead of objects directly, so that layoutlib does not leak the memory. Flag: NONE host-only change Bug: 401823931 Test: layoutlib tests Change-Id: I24b17bc7fb8a45fe095190ef1fa201e54608dfe8