diff --git a/android/app/src/main/kotlin/cc/hafa/reader/sync/SyncConfig.kt b/android/app/src/main/kotlin/cc/hafa/reader/sync/SyncConfig.kt
index 67f9926..08f7dfd 100644
--- a/android/app/src/main/kotlin/cc/hafa/reader/sync/SyncConfig.kt
+++ b/android/app/src/main/kotlin/cc/hafa/reader/sync/SyncConfig.kt
@@ -26,6 +26,9 @@ object SyncConfig {
/** The terms of service. */
const val TERMS_URL = "https://reader.hafa.cc/terms"
+ /** The contact page. */
+ const val CONTACT_URL = "https://reader.hafa.cc/contact"
+
/** Firebase options from the values above. */
fun firebaseOptions(): FirebaseOptions =
FirebaseOptions.Builder()
diff --git a/android/app/src/main/kotlin/cc/hafa/reader/ui/AccountScreen.kt b/android/app/src/main/kotlin/cc/hafa/reader/ui/AccountScreen.kt
index c1ed755..8ffd42d 100644
--- a/android/app/src/main/kotlin/cc/hafa/reader/ui/AccountScreen.kt
+++ b/android/app/src/main/kotlin/cc/hafa/reader/ui/AccountScreen.kt
@@ -293,12 +293,14 @@ private fun Note(text: AnnotatedString) {
Text(text, fontSize = 14.sp, lineHeight = 20.sp, color = ReaderTheme.colors.muted)
}
+@OptIn(ExperimentalLayoutApi::class)
@Composable
private fun Policies() {
val links = LocalUriHandler.current
val colors = ReaderTheme.colors
- Row(Modifier.fillMaxWidth().padding(top = 12.dp), horizontalArrangement = Arrangement.spacedBy(8.dp)) {
- for ((label, address) in listOf(R.string.privacy to SyncConfig.PRIVACY_URL, R.string.terms to SyncConfig.TERMS_URL)) {
+ FlowRow(Modifier.fillMaxWidth().padding(top = 12.dp), horizontalArrangement = Arrangement.spacedBy(8.dp)) {
+ val pages = listOf(R.string.privacy to SyncConfig.PRIVACY_URL, R.string.terms to SyncConfig.TERMS_URL, R.string.contact to SyncConfig.CONTACT_URL)
+ for ((label, address) in pages) {
TextButton(onClick = { links.openUri(address) }, colors = ButtonDefaults.textButtonColors(contentColor = colors.muted)) {
Text(stringResource(label), textDecoration = TextDecoration.Underline)
}
diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml
index 13a53c9..ab333b2 100644
--- a/android/app/src/main/res/values/strings.xml
+++ b/android/app/src/main/res/values/strings.xml
@@ -100,4 +100,5 @@
+ Questions, problems or requests about Reader: write to + support@reader.hafa.cc. +
+ ++ To delete your account, use the delete account page. + What Reader stores, and where, is in the + privacy policy. +
diff --git a/web/src/routes/(policy)/privacy/+page.svelte b/web/src/routes/(policy)/privacy/+page.svelte index 0282d51..d6f1109 100644 --- a/web/src/routes/(policy)/privacy/+page.svelte +++ b/web/src/routes/(policy)/privacy/+page.svelte @@ -136,6 +136,7 @@