You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I need a little clarification about the way reload() works in XSharedPreferences. Right now every time I call it the preferences end up empty, with canRead=false. Is this intended behavior? Obviously I have enabled the new XSharedPreferences in the manifest and MODE_WORLD_READABLE in my preferences and indeed everything works fine in initZygote for the first load (after calling XSharedPreferences.makeWorldReadable()) The problem happens only when I need to get new values in real time and call reload(), this makes the preferences unreadable.
Thank you.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I need a little clarification about the way
reload()
works inXSharedPreferences
. Right now every time I call it the preferences end up empty, withcanRead=false
. Is this intended behavior? Obviously I have enabled the newXSharedPreferences
in the manifest andMODE_WORLD_READABLE
in my preferences and indeed everything works fine ininitZygote
for the first load (after callingXSharedPreferences.makeWorldReadable()
) The problem happens only when I need to get new values in real time and callreload()
, this makes the preferences unreadable.Thank you.
Beta Was this translation helpful? Give feedback.
All reactions