wireguard-android/app
Samuel Holland 5af6703157 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>
2017-07-30 18:44:57 -05:00
..
src/main binding: Weakly reference adapter in list change callback 2017-07-30 18:44:57 -05:00
build.gradle project: Create empty project with WireGuard icon 2017-07-28 23:10:37 -05:00
proguard-rules.pro project: Create empty project with WireGuard icon 2017-07-28 23:10:37 -05:00