Update VPN app dialog message to include version code

Add the string back to AppDialog in VPN

Bug: 372179228
Change-Id: I2f45515623cd7d0fbaf4a17026d040107b804fed
Test: verify the UI.
Flag: EXEMPT bugfix
This commit is contained in:
SongFerng Wang
2024-10-11 07:55:17 +00:00
parent f7d9c87ac7
commit f50ba4c6ec
2 changed files with 3 additions and 1 deletions

View File

@@ -6957,6 +6957,8 @@
<string name="vpn_disconnect">Disconnect</string>
<!-- Field label to show the version number for a VPN app. [CHAR LIMIT=40] -->
<string name="vpn_version">Version</string>
<!-- Field label to show the version number for a VPN app dialog. [CHAR LIMIT=40] -->
<string name="vpn_version_info">Version <xliff:g id="version" example="3.3.0">%s</xliff:g></string>
<!-- Button label to forget a VPN profile [CHAR LIMIT=40] -->
<string name="vpn_forget_long">Forget VPN</string>
<!-- Dialog message title to set another VPN app to be always-on [CHAR LIMIT=40] -->

View File

@@ -56,7 +56,7 @@ class AppDialog extends AlertDialog implements DialogInterface.OnClickListener {
@Override
protected void onCreate(Bundle savedState) {
setTitle(mLabel);
setMessage(getContext().getString(R.string.vpn_version, mPackageInfo.versionName));
setMessage(getContext().getString(R.string.vpn_version_info, mPackageInfo.versionName));
createButtons();
super.onCreate(savedState);