feat: setting for disabling sentry

This commit is contained in:
Canny 2022-11-10 23:27:41 +03:00
parent 3f027c0701
commit 480df20a4b
No known key found for this signature in database
GPG Key ID: 395CCB0AA979F27B
2 changed files with 17 additions and 1 deletions

View File

@ -68,7 +68,22 @@ fun SettingsScreen(
}
)
}
ListItem(
modifier = Modifier.clickable { prefs.sentry = !prefs.sentry },
headlineText = { Text(stringResource(R.string.sentry)) },
leadingContent = {
Icon(
Icons.Default.IntegrationInstructions,
contentDescription = null
)
},
trailingContent = {
Switch(
checked = prefs.sentry,
onCheckedChange = { prefs.sentry = it }
)
}
)
Divider()
SocialItem(R.string.github, R.drawable.ic_github, viewModel::openGitHub)
SocialItem(R.string.opensource_licenses, Icons.Default.LibraryBooks, onClickLicenses)

View File

@ -34,5 +34,6 @@
<string name="split_apk_warning">You have selected a resource patch and a split APK installation was detected so patching errors can occur.\nAre you sure you want to proceed with patching a split base APK?</string>
<string name="opensource_licenses">Open source licenses</string>
<string name="select_sources">Select sources</string>
<string name="sentry">Sentry</string>
<string name="select_bundle_from_storage">Select a bundle from storage</string>
</resources>