mirror of
https://github.com/twinksoftware/Gearslip.git
synced 2026-11-11 00:12:24 +01:00
Settings and setup link to the privacy policy
The usage notes card, which setup and Settings share, ends with it, and Settings' About links list it under the source code.
This commit is contained in:
1 parent
8693e35873
commit
12baaca79a
3 files changed
+21
No files matched your search
@@ -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),
|
||||
|
||||
@@ -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. */
|
||||
|
||||
@@ -326,6 +326,8 @@
|
||||
<string name="about_matrix_sub">Talk with other drivers about cars, apps, and Gearslip</string>
|
||||
<string name="about_translate">Help translate Gearslip</string>
|
||||
<string name="about_translate_sub">Fix or add your language on Weblate. Some translations started as machine translations.</string>
|
||||
<string name="privacy_policy">Privacy policy</string>
|
||||
<string name="privacy_policy_sub">What Gearslip sends, to whom, and why</string>
|
||||
<string name="about_source">Source code</string>
|
||||
<string name="about_source_sub">Read or change Gearslip\'s code under the AGPL</string>
|
||||
<string name="about_voice_credits">Voice credits</string>
|
||||
|
||||
Reference in new issue
Block a user