Android-Scanner-Compat-Library icon indicating copy to clipboard operation
Android-Scanner-Compat-Library copied to clipboard

Weak scanback call losing reference

Open johnnyzen opened this issue 2 years ago • 0 comments

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

johnnyzen avatar Apr 28 '22 15:04 johnnyzen