diff options
-rw-r--r-- | res/values/strings.xml | 2 | ||||
-rw-r--r-- | res/xml/preferences.xml | 3 | ||||
-rw-r--r-- | src/com/cyanogenmod/trebuchet/preference/Preferences.java | 4 |
3 files changed, 8 insertions, 1 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml index e956403..7331625 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -25,7 +25,7 @@ <!-- Application copyright --> <string name="application_copyright">Copyright \u00A9 CyanogenMod 2012</string> <!-- Application version --> - <string name="application_version">0.1</string> + <string name="application_version">0.2</string> <!-- Accessibility-facing application name --> <string name="home">Home</string> <!-- Name for all applications running as this uid. --> diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml index 1e10bb3..501e0a1 100644 --- a/res/xml/preferences.xml +++ b/res/xml/preferences.xml @@ -85,5 +85,8 @@ <!-- Application --> <PreferenceCategory android:title="@string/preferences_application_title"> + <Preference android:key="application_version" + style="?android:preferenceInformationStyle" + android:summary="@string/application_copyright" /> </PreferenceCategory> </PreferenceScreen> diff --git a/src/com/cyanogenmod/trebuchet/preference/Preferences.java b/src/com/cyanogenmod/trebuchet/preference/Preferences.java index 819cde8..147308d 100644 --- a/src/com/cyanogenmod/trebuchet/preference/Preferences.java +++ b/src/com/cyanogenmod/trebuchet/preference/Preferences.java @@ -19,6 +19,7 @@ package com.cyanogenmod.trebuchet.preference; import android.content.Context; import android.content.SharedPreferences; import android.os.Bundle; +import android.preference.Preference; import android.preference.PreferenceActivity; import com.cyanogenmod.trebuchet.R; @@ -37,5 +38,8 @@ public class Preferences extends PreferenceActivity { SharedPreferences.Editor editor = prefs.edit(); editor.putBoolean(PreferencesProvider.PREFERENCES_CHANGED, true); editor.commit(); + + Preference version = findPreference("application_version"); + version.setTitle(getString(R.string.application_name) + " " + getString(R.string.application_version)); } } |