diff --git a/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/AboutLinks.kt b/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/AboutLinks.kt
index 92c6425..70284ea 100644
--- a/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/AboutLinks.kt
+++ b/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/AboutLinks.kt
@@ -12,6 +12,7 @@ import androidx.compose.foundation.clickable
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.KeyboardArrowRight
import androidx.compose.material.icons.automirrored.filled.Send
+import androidx.compose.material.icons.filled.Lock
import androidx.compose.material.icons.filled.Build
import androidx.compose.material.icons.filled.Edit
import androidx.compose.material.icons.filled.Favorite
@@ -47,6 +48,7 @@ internal object GearslipLinks {
const val MATRIX = "https://matrix.to/#/!mf0_mgBd5KqKpc9FfX_wHp1jFCcwAtPrndIn_oGIyMk?via=matrix.org"
const val SOURCE = "https://github.com/twinksoftware/gearslip"
const val CARS = "$SOURCE/blob/main/CARS.md"
+ const val PRIVACY = "$SOURCE/blob/main/PRIVACY.md"
const val TRANSLATE = "https://hosted.weblate.org/engage/gearslip/"
/** This version's release notes on GitHub; every release is tagged v plus its version name. */
@@ -195,6 +197,14 @@ internal fun AboutLinkRows() {
trailing = arrow,
)
SettingsDivider()
+ SettingsRow(
+ stringResource(R.string.privacy_policy),
+ Modifier.clickable { GearslipLinks.open(context, GearslipLinks.PRIVACY) },
+ subtitle = stringResource(R.string.privacy_policy_sub),
+ icon = Icons.Filled.Lock,
+ trailing = arrow,
+ )
+ SettingsDivider()
SettingsRow(
stringResource(R.string.about_voice_credits),
subtitle = stringResource(R.string.about_voice_credits_sub),
diff --git a/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/UsageStatsChoices.kt b/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/UsageStatsChoices.kt
index 7e11ebd..5c1df74 100644
--- a/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/UsageStatsChoices.kt
+++ b/gearslip/src/main/java/app/seb3thehacker/gearslip/ui/UsageStatsChoices.kt
@@ -21,6 +21,7 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.selection.toggleable
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.KeyboardArrowRight
+import androidx.compose.material.icons.filled.Lock
import androidx.compose.material.icons.filled.Check
import androidx.compose.material.icons.filled.Info
import androidx.compose.material.icons.filled.KeyboardArrowDown
@@ -138,6 +139,14 @@ internal fun ColumnScope.UsageStatsRows() {
}
}
}
+ // Shown whether the notes are on or off, in setup and in Settings alike.
+ SettingsDivider()
+ SettingsRow(
+ stringResource(R.string.privacy_policy),
+ Modifier.clickable { GearslipLinks.open(context, GearslipLinks.PRIVACY) },
+ subtitle = stringResource(R.string.privacy_policy_sub),
+ icon = Icons.Filled.Lock,
+ )
}
/** A share choice: the label lines up with the rows' titles, the checkbox sits at the end. */
diff --git a/gearslip/src/main/res/values/strings.xml b/gearslip/src/main/res/values/strings.xml
index d0c0fe5..ab23643 100644
--- a/gearslip/src/main/res/values/strings.xml
+++ b/gearslip/src/main/res/values/strings.xml
@@ -326,6 +326,8 @@
Talk with other drivers about cars, apps, and Gearslip
Help translate Gearslip
Fix or add your language on Weblate. Some translations started as machine translations.
+ Privacy policy
+ What Gearslip sends, to whom, and why
Source code
Read or change Gearslip\'s code under the AGPL
Voice credits