Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Expose the shared pref key#554

Merged
mathieuboniface merged 1 commit intoandroidannotations:developfrom
erwan:prefKey
Apr 13, 2013
Merged

Expose the shared pref key#554
mathieuboniface merged 1 commit intoandroidannotations:developfrom
erwan:prefKey

Conversation

@erwan
Copy link
Contributor

@erwan erwan commented Apr 11, 2013

This is useful in particular when observing sharedPreferences changes:

@Override
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
    if (prefs.myPref().key().equals(key) {
        // Do stuff
    }
}

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants