Skip to content

XSharedPreferences with androidx.preference #169

Answered by farfromrefug
farfromrefug asked this question in Q&A
Discussion options

You must be logged in to vote

Ok i managed to get it to work:

  • only do XSharedPreferences(BuildConfig.APPLICATION_ID)
  • ensure the module is using xsharedpreferences by adding the xposedsharedprefs metadata in your manifest
  • in your SettingsFragment onCreatePreferences call
getPreferenceManager().setSharedPreferencesMode(Context.MODE_WORLD_READABLE);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by farfromrefug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant