mirror of
https://github.com/yggdrasil-network/crispa-android.git
synced 2024-11-08 11:31:02 +00:00
1. Added core version in main window
This commit is contained in:
parent
5e414d1bb3
commit
493dd2708a
@ -14,6 +14,7 @@ import androidx.appcompat.app.AppCompatActivity
|
|||||||
import androidx.appcompat.widget.SwitchCompat
|
import androidx.appcompat.widget.SwitchCompat
|
||||||
import androidx.preference.PreferenceManager
|
import androidx.preference.PreferenceManager
|
||||||
import dalvik.system.DexFile
|
import dalvik.system.DexFile
|
||||||
|
import mobile.Mobile
|
||||||
import org.yggdrasil.app.crispa.models.DNSInfo
|
import org.yggdrasil.app.crispa.models.DNSInfo
|
||||||
import org.yggdrasil.app.crispa.models.PeerInfo
|
import org.yggdrasil.app.crispa.models.PeerInfo
|
||||||
import org.yggdrasil.app.crispa.models.config.DNSInfoListAdapter
|
import org.yggdrasil.app.crispa.models.config.DNSInfoListAdapter
|
||||||
@ -214,7 +215,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
val c: Class<*> = dexFile.loadClass("dummy/Dummy", cl)
|
val c: Class<*> = dexFile.loadClass("dummy/Dummy", cl)
|
||||||
}
|
}
|
||||||
val versionName = findViewById<Button>(R.id.about)
|
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 {
|
versionName.setOnClickListener {
|
||||||
val intent = Intent(this@MainActivity, AboutActivity::class.java)
|
val intent = Intent(this@MainActivity, AboutActivity::class.java)
|
||||||
startActivity(intent)
|
startActivity(intent)
|
||||||
|
Loading…
Reference in New Issue
Block a user