summaryrefslogtreecommitdiff
path: root/libs/rs/rsg_ScriptJavaClass.cpp
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2010-07-13 07:53:32 -0700
committerKenny Root <kroot@google.com>2010-07-13 10:28:44 -0700
commitba636df784398e4cd56f2982de63973ef6cd44fb (patch)
treee28b570629668c77a00a9c9e42f3a351e08fd630 /libs/rs/rsg_ScriptJavaClass.cpp
parent25940667870e782c1d84ed7f6e4e87d92c14c6cb (diff)
Allow ListPreference summary to use entry
Currently when ListPreferences are used in a PreferenceActivity, the summary values are set to the same as the current index in mEntryValue. This patch adds the ability for a string substitution to be used in the summary which points to the corresponding entry in mEntries to aid in localization. For example a preference may be named "color" with the following attributes in the locale "de" (German): mEntryValues = { "red", "green", "blue" } mEntries = { "rot", "grün", "blau" } mSummary = "Die Farbe ist %1$s." getSummary() returns "Die Farbe ist grün." Change-Id: Iea169ac3d1c9d6290d853fc7c67a7c4c8a11bb90
Diffstat (limited to 'libs/rs/rsg_ScriptJavaClass.cpp')
0 files changed, 0 insertions, 0 deletions