commit | 670412c1483ba7ccd4bb23fbcf4159b129449065 | [log] [tgz] |
---|---|---|
author | Lucas Silva <lusilva@google.com> | Wed Nov 08 12:07:11 2023 -0500 |
committer | Lucas Silva <lusilva@google.com> | Wed Nov 08 14:13:13 2023 -0500 |
tree | c4f2048ff88a9c0e2b86dc9143f5825dec13f2d1 | |
parent | 3129fc5b55ca9238d212152409dd5c3daeb4ec17 [diff] |
Update dream state controller to hold weak ref to callbacks. This avoids memory leaks caused by callers of this state controller not properly removing callbacks. This change also creates a WeakReferenceFactory util so that weak references may be cleared in tests. Bug: 309396474 Flag: NONE Test: atest DreamOverlayStateControllerTest Change-Id: If8f3331a8d943d18bb305c73c8bc29f4777cb97a