summaryrefslogtreecommitdiff
path: root/libs/rs/rsg_ScriptJavaClass.cpp
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@android.com>2010-11-19 15:08:12 -0800
committerBrad Fitzpatrick <bradfitz@android.com>2010-11-19 16:39:00 -0800
commit5913630ec9686f4640a90b6872318e11fb5d9120 (patch)
treed34bcf04336f4c55c0c5de15eedc22b4ff05ea17 /libs/rs/rsg_ScriptJavaClass.cpp
parentde8da848cddaa6515e28aa362cbbd987eb049615 (diff)
Don't re-read SharedPreferences unnecessarily.
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
Diffstat (limited to 'libs/rs/rsg_ScriptJavaClass.cpp')
0 files changed, 0 insertions, 0 deletions