Put BuildConfig.VERSION_NAME back in the prefs screen.

This commit is contained in:
voussoir 2023-03-26 13:30:24 -07:00
parent d7caee4131
commit 670f219ed7
2 changed files with 1 additions and 3 deletions

View file

@ -2,8 +2,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.voussoir.trkpt">
<!-- USE GPS AND NETWORK - EXCLUDE NON-GPS DEVICES -->
<uses-feature android:name="android.hardware.location.gps" android:required="true" />
<uses-feature android:name="android.hardware.location.network" />

View file

@ -237,7 +237,7 @@ class SettingsFragment : PreferenceFragmentCompat(), YesNoDialog.YesNoDialogList
val preferenceAppVersion = Preference(context)
preferenceAppVersion.title = getString(R.string.pref_app_version_title)
preferenceAppVersion.setIcon(R.drawable.ic_info_24dp)
preferenceAppVersion.summary = getString(R.string.pref_app_version_summary)
preferenceAppVersion.summary = getString(R.string.pref_app_version_summary) + " " + BuildConfig.VERSION_NAME
preferenceAppVersion.setOnPreferenceClickListener {
// copy to clipboard
val clip: ClipData = ClipData.newPlainText("simple text", preferenceAppVersion.summary)