Android-Scanner-Compat-Library
Android-Scanner-Compat-Library copied to clipboard
Weak scanback call losing reference
Version: no.nordicsemi.android.support.v18:scanner:1.6.0 Samsung Flip 3 - Android 12
Hi all,
I am noticing:
final ScanCallback userCallback = weakScanCallback.get(); in UserScanCallbackWrapper
is returning null, preventing callbacks to my fragment (I guess garbage collection is occuring)
This seems random, and not related for example when device goes to sleep.
Testing with app in foreground with no other processing.
Thanks for the library