diff options
3 files changed, 10 insertions, 6 deletions
| diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml index 853930e174a7..6b461eebe2e0 100644 --- a/packages/SystemUI/res/values/strings.xml +++ b/packages/SystemUI/res/values/strings.xml @@ -1257,7 +1257,10 @@      <string name="monitoring_description_managed_profile_network_logging">Your admin has turned on network logging, which monitors traffic in your work profile but not in your personal profile.</string>      <!-- Monitoring dialog: Description of an active VPN. [CHAR LIMIT=NONE]--> -    <string name="monitoring_description_named_vpn">This device is connected to the internet through <xliff:g id="vpn_app" example="Foo VPN App">%1$s</xliff:g>. Your network activity, including emails and browsing data, is visible to your IT admin.</string> +    <string name="monitoring_description_named_vpn">This device is connected to the internet through <xliff:g id="vpn_app" example="Foo VPN App">%1$s</xliff:g>. Your network activity, including emails and browsing data, is visible to the VPN provider.</string> + +    <!-- Monitoring dialog: Description of an active VPN on a managed device. [CHAR LIMIT=NONE]--> +    <string name="monitoring_description_managed_device_named_vpn">This device is connected to the internet through <xliff:g id="vpn_app" example="Foo VPN App">%1$s</xliff:g>. Your network activity, including emails and browsing data, is visible to your IT admin.</string>      <!-- Monitoring dialog: Description of two active VPNs. [CHAR LIMIT=NONE]-->      <string name="monitoring_description_two_named_vpns">This device is connected to the internet through <xliff:g id="vpn_app" example="Foo VPN App">%1$s</xliff:g> and <xliff:g id="vpn_app" example="Bar VPN App">%2$s</xliff:g>. Your network activity, including emails and browsing data, is visible to your IT admin.</string> diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSSecurityFooterUtils.java b/packages/SystemUI/src/com/android/systemui/qs/QSSecurityFooterUtils.java index 0bce1f728e18..b70b94b00923 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSSecurityFooterUtils.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSSecurityFooterUtils.java @@ -719,7 +719,8 @@ public class QSSecurityFooterUtils implements DialogInterface.OnClickListener {                  String name = vpnName != null ? vpnName : vpnNameWorkProfile;                  String namedVp = mDpm.getResources().getString(                          QS_DIALOG_MANAGEMENT_NAMED_VPN, -                        () -> mContext.getString(R.string.monitoring_description_named_vpn, name), +                        () -> mContext.getString( +                                R.string.monitoring_description_managed_device_named_vpn, name),                          name);                  message.append(namedVp);              } diff --git a/packages/SystemUI/tests/src/com/android/systemui/qs/QSSecurityFooterTest.java b/packages/SystemUI/tests/src/com/android/systemui/qs/QSSecurityFooterTest.java index 88d7e9cb4de4..2dc78a323f55 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/qs/QSSecurityFooterTest.java +++ b/packages/SystemUI/tests/src/com/android/systemui/qs/QSSecurityFooterTest.java @@ -587,14 +587,14 @@ public class QSSecurityFooterTest extends SysuiTestCase {          assertEquals(addLink(mContext.getString(R.string.monitoring_description_two_named_vpns,                                   VPN_PACKAGE, VPN_PACKAGE_2)),                  mFooterUtils.getVpnMessage(false, true, VPN_PACKAGE, VPN_PACKAGE_2)); -        assertEquals(addLink(mContext.getString(R.string.monitoring_description_named_vpn, -                                 VPN_PACKAGE)), +        assertEquals(addLink(mContext.getString( +                R.string.monitoring_description_managed_device_named_vpn, VPN_PACKAGE)),                  mFooterUtils.getVpnMessage(true, false, VPN_PACKAGE, null));          assertEquals(addLink(mContext.getString(R.string.monitoring_description_named_vpn,                                   VPN_PACKAGE)),                  mFooterUtils.getVpnMessage(false, false, VPN_PACKAGE, null)); -        assertEquals(addLink(mContext.getString(R.string.monitoring_description_named_vpn, -                                 VPN_PACKAGE_2)), +        assertEquals(addLink(mContext.getString( +                R.string.monitoring_description_managed_device_named_vpn, VPN_PACKAGE_2)),                  mFooterUtils.getVpnMessage(true, true, null, VPN_PACKAGE_2));          assertEquals(addLink(mContext.getString(                                   R.string.monitoring_description_managed_profile_named_vpn, |