1. Added core version in main window

This commit is contained in:
vadym 2022-11-25 15:50:18 +02:00
parent 5e414d1bb3
commit 493dd2708a

View File

@ -14,6 +14,7 @@ import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.SwitchCompat
import androidx.preference.PreferenceManager
import dalvik.system.DexFile
import mobile.Mobile
import org.yggdrasil.app.crispa.models.DNSInfo
import org.yggdrasil.app.crispa.models.PeerInfo
import org.yggdrasil.app.crispa.models.config.DNSInfoListAdapter
@ -214,7 +215,7 @@ class MainActivity : AppCompatActivity() {
val c: Class<*> = dexFile.loadClass("dummy/Dummy", cl)
}
val versionName = findViewById<Button>(R.id.about)
versionName.text = """version:${BuildConfig.VERSION_NAME} build:${BuildConfig.VERSION_CODE}"""
versionName.text = """version:${BuildConfig.VERSION_NAME} build:${BuildConfig.VERSION_CODE} core:${Mobile.getVersion()}"""
versionName.setOnClickListener {
val intent = Intent(this@MainActivity, AboutActivity::class.java)
startActivity(intent)