myanmarking
01/05/2021, 1:45 PMstreetsofboston
01/05/2021, 2:33 PMlistener
variable out. It just assigns the listener as the argument to the start
method.
This means the Listener
instance reference goes out of scope. The start
only keeps a weak-reference. Which means that no-one is keeping a hard reference anymore and it gets gc-edmyanmarking
01/05/2021, 2:34 PMstreetsofboston
01/05/2021, 2:34 PMmyanmarking
01/05/2021, 2:34 PMstreetsofboston
01/05/2021, 2:35 PMawaitClose { listener = null }
may work?myanmarking
01/05/2021, 2:36 PMstreetsofboston
01/05/2021, 2:36 PMListener
instance through the listener
variable, until `awaitClose`’s lambda is calledmyanmarking
01/05/2021, 2:36 PMstreetsofboston
01/05/2021, 2:36 PMstreetsofboston
01/05/2021, 2:36 PMawaitClose { listener = null }
?myanmarking
01/05/2021, 2:37 PMtseisel
01/05/2021, 6:56 PMSharedPreferences.OnPreferenceChangeListener
I thinklouiscad
01/06/2021, 2:24 PMmyanmarking
01/06/2021, 2:25 PMlouiscad
01/06/2021, 2:25 PMlouiscad
01/06/2021, 2:25 PMmyanmarking
01/06/2021, 2:25 PMlouiscad
01/06/2021, 2:26 PM