summaryrefslogtreecommitdiffhomepage
path: root/android
diff options
context:
space:
mode:
authorDavid Göransson <david.goransson90@gmail.com>2023-10-24 13:41:21 +0200
committerJonatan Rhodin <jonatan.rhodin@mullvad.net>2023-10-26 10:27:06 +0200
commit77637a18267c32110b1de7cba3096318dadb8ea3 (patch)
treedae0e44fd3006c3cef2e52df86e753011a2a28cb /android
parent7b8db2b43fa800b459d5fc9ea8a2085b96a631d9 (diff)
downloadmullvadvpn-77637a18267c32110b1de7cba3096318dadb8ea3.tar.xz
mullvadvpn-77637a18267c32110b1de7cba3096318dadb8ea3.zip
Update privacy strings
Diffstat (limited to 'android')
-rw-r--r--android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/PrivacyDisclaimerScreen.kt23
-rw-r--r--android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/util/UnitConversion.kt8
-rw-r--r--android/lib/resource/src/main/res/values/strings.xml3
3 files changed, 27 insertions, 7 deletions
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/PrivacyDisclaimerScreen.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/PrivacyDisclaimerScreen.kt
index f78b54f989..ebfae4e2db 100644
--- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/PrivacyDisclaimerScreen.kt
+++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/PrivacyDisclaimerScreen.kt
@@ -4,6 +4,7 @@ import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
+import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
@@ -30,6 +31,7 @@ import androidx.constraintlayout.compose.Dimension
import net.mullvad.mullvadvpn.R
import net.mullvad.mullvadvpn.compose.button.PrimaryButton
import net.mullvad.mullvadvpn.compose.component.ScaffoldWithTopBar
+import net.mullvad.mullvadvpn.compose.util.toDp
import net.mullvad.mullvadvpn.lib.theme.AppTheme
import net.mullvad.mullvadvpn.lib.theme.Dimens
@@ -73,22 +75,31 @@ fun PrivacyDisclaimerScreen(
) {
Text(
text = stringResource(id = R.string.privacy_disclaimer_title),
- fontSize = 24.sp,
- color = Color.White,
+ style = MaterialTheme.typography.headlineSmall,
+ color = MaterialTheme.colorScheme.onBackground,
fontWeight = FontWeight.Bold
)
+ val fontSize = 14.sp
Text(
- text = stringResource(id = R.string.privacy_disclaimer_body),
- fontSize = 14.sp,
- color = Color.White,
+ text = stringResource(id = R.string.privacy_disclaimer_body_first_paragraph),
+ fontSize = fontSize,
+ color = MaterialTheme.colorScheme.onBackground,
modifier = Modifier.padding(top = 10.dp)
)
+ Spacer(modifier = Modifier.height(fontSize.toDp() + Dimens.smallPadding))
+
+ Text(
+ text = stringResource(id = R.string.privacy_disclaimer_body_second_paragraph),
+ fontSize = fontSize,
+ color = MaterialTheme.colorScheme.onBackground,
+ )
+
Row(modifier = Modifier.padding(top = 10.dp)) {
ClickableText(
text = AnnotatedString(stringResource(id = R.string.privacy_policy_label)),
- onClick = { onPrivacyPolicyLinkClicked.invoke() },
+ onClick = { onPrivacyPolicyLinkClicked() },
style =
TextStyle(
fontSize = 12.sp,
diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/util/UnitConversion.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/util/UnitConversion.kt
new file mode 100644
index 0000000000..c88e1b6879
--- /dev/null
+++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/util/UnitConversion.kt
@@ -0,0 +1,8 @@
+package net.mullvad.mullvadvpn.compose.util
+
+import androidx.compose.runtime.Composable
+import androidx.compose.ui.platform.LocalDensity
+import androidx.compose.ui.unit.Dp
+import androidx.compose.ui.unit.TextUnit
+
+@Composable fun TextUnit.toDp(): Dp = with(LocalDensity.current) { this@toDp.toDp() }
diff --git a/android/lib/resource/src/main/res/values/strings.xml b/android/lib/resource/src/main/res/values/strings.xml
index e878920dd5..683a2c6a8f 100644
--- a/android/lib/resource/src/main/res/values/strings.xml
+++ b/android/lib/resource/src/main/res/values/strings.xml
@@ -162,7 +162,8 @@
<string name="new_device_notification_message"><![CDATA[Welcome, this device is now called <b>%s</b>. For more details see the info button in Account.]]></string>
<string name="agree_and_continue">Agree and continue</string>
<string name="privacy_disclaimer_title">Privacy</string>
- <string name="privacy_disclaimer_body">To make sure that you have the most secure version and to inform you of any issues with the current version that is running, the app performs version checks automatically. This sends the app version and Android system version to Mullvad servers. Mullvad keeps counters on number of used app versions and Android versions. The data is never stored or used in any way that can identify you.\n\nIf the split tunneling feature is used, then the app queries your system for a list of all installed applications. This list is only retrieved in the split tunneling view. The list of installed applications is never sent from the device.</string>
+ <string name="privacy_disclaimer_body_first_paragraph">To make sure that you have the most secure version and to inform you of any issues with the current version that is running, the app performs version checks automatically. This sends the app version and Android system version to Mullvad servers. Mullvad keeps counters on number of used app versions and Android versions. The data is never stored or used in any way that can identify you.</string>
+ <string name="privacy_disclaimer_body_second_paragraph">If the split tunneling feature is used, then the app queries your system for a list of all installed applications. This list is only retrieved in the split tunneling view. The list of installed applications is never sent from the device.</string>
<string name="submit_button">Submit</string>
<string name="remove_button">Remove</string>
<string name="enter_value_placeholder">Enter MTU</string>