mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-15 01:35:07 +08:00
Display VersionCode of the app in the settings, because Android system does not display it anymore
This commit is contained in:
parent
23466fb5a4
commit
ee2e575211
@ -19,7 +19,7 @@ package im.vector.riotx.features.version
|
|||||||
import im.vector.riotx.BuildConfig
|
import im.vector.riotx.BuildConfig
|
||||||
|
|
||||||
fun getVersion(longFormat: Boolean, useBuildNumber: Boolean): String {
|
fun getVersion(longFormat: Boolean, useBuildNumber: Boolean): String {
|
||||||
var result = BuildConfig.VERSION_NAME
|
var result = "${BuildConfig.VERSION_NAME} [${BuildConfig.VERSION_CODE}]"
|
||||||
|
|
||||||
var flavor = BuildConfig.SHORT_FLAVOR_DESCRIPTION
|
var flavor = BuildConfig.SHORT_FLAVOR_DESCRIPTION
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user