summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJonatan Rhodin <jonatan.rhodin@mullvad.net>2023-10-26 11:54:08 +0200
committerJonatan Rhodin <jonatan.rhodin@mullvad.net>2023-10-26 11:54:08 +0200
commit780308c5cc660652bb3e5c6b7b0e65c6574279bf (patch)
treedae0e44fd3006c3cef2e52df86e753011a2a28cb
parent7b8db2b43fa800b459d5fc9ea8a2085b96a631d9 (diff)
parent77637a18267c32110b1de7cba3096318dadb8ea3 (diff)
downloadmullvadvpn-780308c5cc660652bb3e5c6b7b0e65c6574279bf.tar.xz
mullvadvpn-780308c5cc660652bb3e5c6b7b0e65c6574279bf.zip
Merge branch 'broken-translations-converter-script-droid-368'
-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
-rw-r--r--gui/locales/messages.pot5
4 files changed, 31 insertions, 8 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>
diff --git a/gui/locales/messages.pot b/gui/locales/messages.pot
index 95c12c25fa..3721e39a9d 100644
--- a/gui/locales/messages.pot
+++ b/gui/locales/messages.pot
@@ -1729,6 +1729,9 @@ msgstr ""
msgid "Going to login will unblock the internet on this device."
msgstr ""
+msgid "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."
+msgstr ""
+
msgid "Install Mullvad VPN (%s) to stay up to date"
msgstr ""
@@ -1789,7 +1792,7 @@ msgstr ""
msgid "This might cause issues on certain websites, services, and apps."
msgstr ""
-msgid "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."
+msgid "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."
msgstr ""
msgid "Toggle VPN"