summaryrefslogtreecommitdiff
path: root/libs/hwui/ProgramCache.cpp
diff options
context:
space:
mode:
author Brad Fitzpatrick <bradfitz@android.com> 2010-10-10 10:58:47 -0700
committer Brad Fitzpatrick <bradfitz@android.com> 2010-10-10 15:26:24 -0700
commitdd644c179c1bf47d82d776d7f644e4fc1467159d (patch)
treed566c1c17f2b325e3760a34ca10cf71d965893f2 /libs/hwui/ProgramCache.cpp
parent4e1658afb8a79aa03a5ca712b02b2a33fb00bf6d (diff)
Fallback to SharedPreferences$Editor.commit() when no apply() exists.
Gingerbread widened the SharedPreferences.Editor interface, adding an apply() method. Most people don't implement this interface themselves, but a couple apps do. A few spots in the core framework take a SharedPreferences[.Editor] from apps, which might be a pre-Gingerbread implementation without an apply() method. This patch makes sure we never depend on the presence of an apply() method, falling back to commit() if apply() isn't available. Change-Id: I32693ac9227a60b694526a26a30234fb17a40581
Diffstat (limited to 'libs/hwui/ProgramCache.cpp')
0 files changed, 0 insertions, 0 deletions