Show real app version in settings
This commit is contained in:
@@ -9,6 +9,7 @@ import android.widget.Button
|
||||
import android.widget.CheckBox
|
||||
import android.widget.EditText
|
||||
import android.widget.Spinner
|
||||
import android.widget.TextView
|
||||
import android.widget.Toast
|
||||
import ru.ua1zbe.svxremote.prefs.ConnectionSettings
|
||||
import ru.ua1zbe.svxremote.prefs.Prefs
|
||||
@@ -41,6 +42,8 @@ class SettingsActivity : Activity() {
|
||||
val chkNodeToasts = findViewById<CheckBox>(R.id.chk_node_toasts)
|
||||
chkNodeToasts.isChecked = Prefs.nodeToastsEnabled(this)
|
||||
inputAprsCoords.setText(Prefs.aprsCoords(this))
|
||||
findViewById<TextView>(R.id.lbl_version).text =
|
||||
getString(R.string.app_version_fmt, BuildConfig.VERSION_NAME)
|
||||
|
||||
val profileNames = (1..Prefs.PROFILE_COUNT)
|
||||
.map { getString(R.string.profile_name, it) }
|
||||
|
||||
@@ -218,7 +218,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="24dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/app_version"
|
||||
android:textColor="@color/text_secondary"
|
||||
android:textSize="12sp" />
|
||||
</LinearLayout>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<string name="node_tg_suffix"> (группа %1$d)</string>
|
||||
<string name="node_with_tg">%1$s — TG%2$d</string>
|
||||
<string name="btn_save">Сохранить</string>
|
||||
<string name="app_version">SVXhomyak — v1.0.5</string>
|
||||
<string name="app_version_fmt">SVXhomyak — v%1$s</string>
|
||||
<string name="saved">Сохранено</string>
|
||||
<string name="pref_callsign_hint">например UA1ZBE</string>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user