Refactor(AboutScreen): Optimize version info
This commit is contained in:
@@ -135,9 +135,12 @@ private fun AboutAppInfo(
|
|||||||
Text(
|
Text(
|
||||||
style = MaterialTheme.typography.bodyMedium,
|
style = MaterialTheme.typography.bodyMedium,
|
||||||
color = MaterialTheme.colorScheme.outline,
|
color = MaterialTheme.colorScheme.outline,
|
||||||
text = "${ResourcesUtils.getAppVersionName(LocalContext.current)}(${
|
text = "${ResourcesUtils.getAppVersionName(LocalContext.current)} (${
|
||||||
ResourcesUtils.getAppVersionCode(
|
stringResource(
|
||||||
LocalContext.current
|
if (ResourcesUtils.getAppVersionCode(LocalContext.current) % 100 == 0L)
|
||||||
|
R.string.core_ga_version
|
||||||
|
else
|
||||||
|
R.string.core_beta_version
|
||||||
)
|
)
|
||||||
})"
|
})"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
<string name="app_full_name">氧工具</string>
|
<string name="app_full_name">氧工具</string>
|
||||||
<string name="app_description">All in One</string>
|
<string name="app_description">All in One</string>
|
||||||
|
|
||||||
|
<string name="core_beta_version">测试版</string>
|
||||||
|
<string name="core_ga_version">正式版</string>
|
||||||
<string name="core_ok">完成</string>
|
<string name="core_ok">完成</string>
|
||||||
<string name="core_back">返回</string>
|
<string name="core_back">返回</string>
|
||||||
<string name="core_close">关闭</string>
|
<string name="core_close">关闭</string>
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
<string name="app_full_name">Oxygen Toolbox</string>
|
<string name="app_full_name">Oxygen Toolbox</string>
|
||||||
<string name="app_description">All in One</string>
|
<string name="app_description">All in One</string>
|
||||||
|
|
||||||
|
<string name="core_beta_version">Beta</string>
|
||||||
|
<string name="core_ga_version">GA</string>
|
||||||
<string name="core_ok">OK</string>
|
<string name="core_ok">OK</string>
|
||||||
<string name="core_back">Back</string>
|
<string name="core_back">Back</string>
|
||||||
<string name="core_close">Close</string>
|
<string name="core_close">Close</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user