diff --git a/app/src/main/java/com/cryart/sabbathschool/ui/login/LoginActivity.kt b/app/src/main/java/com/cryart/sabbathschool/ui/login/LoginActivity.kt
index 2bb81c216..be7335513 100644
--- a/app/src/main/java/com/cryart/sabbathschool/ui/login/LoginActivity.kt
+++ b/app/src/main/java/com/cryart/sabbathschool/ui/login/LoginActivity.kt
@@ -28,12 +28,12 @@ import android.content.DialogInterface
import android.content.Intent
import android.os.Build
import android.os.Bundle
+import android.text.method.LinkMovementMethod
import androidx.activity.result.ActivityResultLauncher
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.isVisible
import app.ss.runtime.permissions.RuntimePermissions
-import com.cryart.sabbathschool.R
import com.cryart.sabbathschool.core.extensions.coroutines.flow.collectIn
import com.cryart.sabbathschool.core.extensions.sdk.isBelowApi
import com.cryart.sabbathschool.core.model.AppConfig
@@ -48,6 +48,7 @@ import com.google.android.material.dialog.MaterialAlertDialogBuilder
import com.google.android.material.snackbar.Snackbar
import dagger.hilt.android.AndroidEntryPoint
import javax.inject.Inject
+import app.ss.translations.R as L10n
@AndroidEntryPoint
class LoginActivity : AppCompatActivity() {
@@ -123,15 +124,17 @@ class LoginActivity : AppCompatActivity() {
}
anonymous.setOnClickListener {
MaterialAlertDialogBuilder(this@LoginActivity)
- .setTitle(R.string.ss_login_anonymously_dialog_title)
- .setMessage(R.string.ss_login_anonymously_dialog_description)
- .setPositiveButton(R.string.ss_login_anonymously_dialog_positive) { _: DialogInterface?, _: Int ->
+ .setTitle(L10n.string.ss_login_anonymously_dialog_title)
+ .setMessage(L10n.string.ss_login_anonymously_dialog_description)
+ .setPositiveButton(L10n.string.ss_login_anonymously_dialog_positive) { _: DialogInterface?, _: Int ->
viewModel.handleAnonymousLogin()
}
- .setNegativeButton(R.string.ss_login_anonymously_dialog_negative, null)
+ .setNegativeButton(L10n.string.ss_login_anonymously_dialog_negative, null)
.create()
.show()
}
+
+ tvTerms.movementMethod = LinkMovementMethod.getInstance()
}
}
diff --git a/app/src/main/res/layout/ss_login_buttons.xml b/app/src/main/res/layout/ss_login_buttons.xml
index f8a1f29f4..7eb18e415 100644
--- a/app/src/main/res/layout/ss_login_buttons.xml
+++ b/app/src/main/res/layout/ss_login_buttons.xml
@@ -74,6 +74,19 @@
app:cornerRadius="@dimen/spacing_micro"
app:textAllCaps="false" />
+
+
diff --git a/common/translations/src/main/res/values/donottranslate.xml b/common/translations/src/main/res/values/donottranslate.xml
index 66217ff36..87af28f0a 100644
--- a/common/translations/src/main/res/values/donottranslate.xml
+++ b/common/translations/src/main/res/values/donottranslate.xml
@@ -80,4 +80,9 @@
ss_settings_logout
+
+ By continuing, you agree to our Terms of Service as described in our Privacy Policy.\n
+ Sabbath School collects User IDs to help identify and restore user saved content.
+
+
\ No newline at end of file