Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Fixed sharedpreferences returns garbage after few runs #217

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Dec 24, 2019

  1. Fixed sharedpreferences returns garbage after few runs

    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 authored Dec 24, 2019
    Configuration menu
    Copy the full SHA
    8843bcb View commit details
    Browse the repository at this point in the history