From a8f728267787cc3891aa0a8e50e239547a0b13c2 Mon Sep 17 00:00:00 2001 From: Mohamed Date: Tue, 13 Jun 2017 13:05:10 +0200 Subject: show version name in settings --- app/src/main/java/com/zeapo/pwdstore/UserPreference.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/src/main/java') 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) { -- cgit v1.2.3