location-samples icon indicating copy to clipboard operation
location-samples copied to clipboard

Fixed sharedpreferences returns garbage after few runs

Open zubayer87 opened this issue 6 years ago • 2 comments

Fixed sharedpreferences returns garbage after few runs. It is also mentioned here: https://developer.android.com/reference/android/content/SharedPreferences "Caution: The preference manager does not currently store a strong reference to the listener. You must store a strong reference to the listener, or it will be susceptible to garbage collection. We recommend you keep a reference to the listener in the instance data of an object that will exist as long as you need the listener."

zubayer87 avatar Dec 24 '19 02:12 zubayer87

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

googlebot avatar Dec 24 '19 02:12 googlebot

@googlebot I signed it!

zubayer87 avatar Dec 24 '19 02:12 zubayer87