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 | e000a17bc95852eb599c250806faf25e8c9b1e70 (patch) | |
tree | c2513661dd83ecfd3a7080a7abad3800cd48cea6 /gradle.properties | |
parent | 187c2d977735456d56a8db74413fac6ef50c9161 (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.
Diffstat (limited to 'gradle.properties')
0 files changed, 0 insertions, 0 deletions