summaryrefslogtreecommitdiffstats
path: root/core/java/android/app/SharedPreferencesImpl.java
Commit message (Collapse)AuthorAgeFilesLines
* Make getSharedPreference() async, blocking on first access.Brad Fitzpatrick2010-12-071-26/+106
| | | | | Bug: 3177046 Change-Id: Ibc36a1e196afd39c4f9da513a2bf4ba9e2c72177
* Don't re-read SharedPreferences unnecessarily.Brad Fitzpatrick2010-11-191-1/+5
| | | | | | | | | | | | | | | Previously reads were only cached once a write occurred because loading didn't set the stat metadata, thus the sp.hasFileChangedUnexpectedly() check always fired on reading. Now the initial read populates the stat info, so getSharedPreference() repeatedly bypasses reading from disk, even wtihout writes. This was probably a regression from apply() being added in Gingerbread. Bug: 3211034 Change-Id: Ifa0bbb27c53a4099544950a4f822fab1fc23a47d
* Move SharedPreferencesImpl out of ContextImpl.javaBrad Fitzpatrick2010-11-101-0/+518
Change-Id: I3a58ec4c9501e906c133e841b5c5ec6bced04a02