diff options
author | Samuel Holland <samuel@sholland.org> | 2017-07-30 18:44:57 -0500 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2017-07-30 18:44:57 -0500 |
commit | 5af6703157c02ad9c2a02e2be5b3b7bbe04dbc72 (patch) | |
tree | c2513661dd83ecfd3a7080a7abad3800cd48cea6 /app/src/main/AndroidManifest.xml | |
parent | 7ceafaf2bb57cbfae7f724a9fe0c07ae4faff415 (diff) |
binding: Weakly reference adapter in list change callback
This allows the ObservableListAdapter to be garbage collected along with
its activity. On the next list change, the OnListChangedCallback will
detect that the adapter is gone and clean itself up. This avoids needing
to manually remove the list from the adapter, as would otherwise be
required to break the reference cycle adapter→list→listener→adapter.
This will be relevant once the list of profiles outlives the activity.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/AndroidManifest.xml')
0 files changed, 0 insertions, 0 deletions