Refactor(AboutScreen): Optimize version info

This commit is contained in:
2024-09-02 16:35:11 +08:00
parent 21bb9a729f
commit 7e91f267e3
3 changed files with 10 additions and 3 deletions

View File

@@ -136,8 +136,11 @@ private fun AboutAppInfo(
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
) )
})" })"
) )

View File

@@ -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>

View File

@@ -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>