Added version string at the bottom of settings.

This commit is contained in:
Mikunj
2020-02-25 14:04:15 +11:00
parent ef2ceff0c1
commit efef42a6f6
4 changed files with 21 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ import android.view.inputmethod.InputMethodManager
import android.widget.LinearLayout
import android.widget.Toast
import kotlinx.android.synthetic.main.activity_settings.*
import network.loki.messenger.BuildConfig
import network.loki.messenger.R
import nl.komponents.kovenant.Promise
import nl.komponents.kovenant.all
@@ -94,6 +95,8 @@ class SettingsActivity : PassphraseRequiredActionBarActivity() {
linkedDevicesButton.setOnClickListener { showLinkedDevices() }
seedButton.setOnClickListener { showSeed() }
clearAllDataButton.setOnClickListener { clearAllData() }
versionText.text = String.format(getString(R.string.version_s), BuildConfig.VERSION_NAME)
}
public override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {