diff options
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/UserPreference.java | 2 | ||||
-rw-r--r-- | app/src/main/res/xml/preference.xml | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/UserPreference.java b/app/src/main/java/com/zeapo/pwdstore/UserPreference.java index f17f52a4..ff3ff1f9 100644 --- a/app/src/main/java/com/zeapo/pwdstore/UserPreference.java +++ b/app/src/main/java/com/zeapo/pwdstore/UserPreference.java @@ -72,6 +72,8 @@ public class UserPreference extends AppCompatActivity { addPreferencesFromResource(R.xml.preference); + findPreference("app_version").setSummary(String.format("Version: %s", BuildConfig.VERSION_NAME)); + findPreference("openpgp_key_id_pref").setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() { @Override public boolean onPreferenceClick(Preference preference) { diff --git a/app/src/main/res/xml/preference.xml b/app/src/main/res/xml/preference.xml index c4a2398c..f7833ee5 100644 --- a/app/src/main/res/xml/preference.xml +++ b/app/src/main/res/xml/preference.xml @@ -108,4 +108,8 @@ android:summary="@string/pref_clear_clipboard_hint" android:title="@string/pref_clear_clipboard_title" /> </PreferenceCategory> + + <Preference + android:key="app_version" + android:title="Version" /> </PreferenceScreen> |