This commit is contained in:
Roshan Varughese 2024-09-18 23:53:06 +12:00
parent faff22c9e9
commit 910fa338e2
3 changed files with 12 additions and 6 deletions

View File

@ -117,8 +117,8 @@ internal class PermissionStep : OnboardingStep {
) )
PermissionItem( PermissionItem(
title = "Send crash logs",//i18n later title = stringResource(MR.strings.onboarding_permission_crashlytics),
subtitle = "Send anonymised crash logs to the developers", subtitle = stringResource(MR.strings.onboarding_permission_crashlytics_description),
granted = allowCrashLogs, granted = allowCrashLogs,
onButtonClick = { onButtonClick = {
// Toggle the granted state // Toggle the granted state
@ -128,8 +128,8 @@ internal class PermissionStep : OnboardingStep {
) )
PermissionItem( PermissionItem(
title = "Allow analytics",//i18n later title = stringResource(MR.strings.onboarding_permission_analytics),
subtitle = "Send anonymized usage data to improve app features.", subtitle = stringResource(MR.strings.onboarding_permission_analytics_description),
granted = allowAnalytics, granted = allowAnalytics,
onButtonClick = { onButtonClick = {
// Toggle the granted state // Toggle the granted state

View File

@ -67,11 +67,11 @@ object SettingsSecurityScreen : SearchableSettings {
), ),
Preference.PreferenceItem.SwitchPreference( Preference.PreferenceItem.SwitchPreference(
pref = securityPreferences.crashlytics(), pref = securityPreferences.crashlytics(),
title = "Allow sharing crash logs with devs", title = stringResource(MR.strings.share_crash_logs),
), ),
Preference.PreferenceItem.SwitchPreference( Preference.PreferenceItem.SwitchPreference(
pref = securityPreferences.analytics(), pref = securityPreferences.analytics(),
title = "Allow sharing analytics data", title = stringResource(MR.strings.share_analytics),
), ),
Preference.PreferenceItem.SwitchPreference( Preference.PreferenceItem.SwitchPreference(
pref = securityPreferences.hideNotificationContent(), pref = securityPreferences.hideNotificationContent(),

View File

@ -190,6 +190,10 @@
<string name="onboarding_permission_notifications_description">Get notified for library updates and more.</string> <string name="onboarding_permission_notifications_description">Get notified for library updates and more.</string>
<string name="onboarding_permission_ignore_battery_opts">Background battery usage</string> <string name="onboarding_permission_ignore_battery_opts">Background battery usage</string>
<string name="onboarding_permission_ignore_battery_opts_description">Avoid interruptions to long-running library updates, downloads, and backup restores.</string> <string name="onboarding_permission_ignore_battery_opts_description">Avoid interruptions to long-running library updates, downloads, and backup restores.</string>
<string name="onboarding_permission_crashlytics">Send crash logs</string>
<string name="onboarding_permission_crashlytics_description">Send anonymised crash logs to the developers.</string>
<string name="onboarding_permission_analytics">Allow analytics</string>
<string name="onboarding_permission_analytics_description">Send anonymized usage data to improve app features.</string>
<string name="onboarding_permission_action_grant">Grant</string> <string name="onboarding_permission_action_grant">Grant</string>
<string name="onboarding_guides_new_user">New to %s? We recommend checking out the getting started guide.</string> <string name="onboarding_guides_new_user">New to %s? We recommend checking out the getting started guide.</string>
<string name="onboarding_guides_returning_user">Reinstalling %s?</string> <string name="onboarding_guides_returning_user">Reinstalling %s?</string>
@ -246,6 +250,8 @@
<string name="lock_when_idle">Lock when idle</string> <string name="lock_when_idle">Lock when idle</string>
<string name="lock_always">Always</string> <string name="lock_always">Always</string>
<string name="lock_never">Never</string> <string name="lock_never">Never</string>
<string name="share_crash_logs">Allow sharing crash logs with devs</string>
<string name="share_analytics">Allow sharing analytics data</string>
<string name="hide_notification_content">Hide notification content</string> <string name="hide_notification_content">Hide notification content</string>
<string name="secure_screen">Secure screen</string> <string name="secure_screen">Secure screen</string>
<string name="secure_screen_summary">Secure screen hides app contents when switching apps and block screenshots</string> <string name="secure_screen_summary">Secure screen hides app contents when switching apps and block screenshots</string>