also hide button in generic crash

This commit is contained in:
Chloe committed 2025-09-17 10:38:06 -07:00
1 parent 266055e6d5
commit 1e0dcc91ec
1 file changed
+5
@@ -248,6 +248,10 @@ fun ErrorInfoActions(extraDetails: String?, modifier: Modifier = Modifier) {
Text(stringResource(R.string.launcher_error_export_crash))
}
val developerSettingsEnabled = remember {
PreferenceUtils.get(context).getBoolean(PreferenceUtils.Key.DEVELOPER_MODE)
}
if (developerSettingsEnabled) {
FilledTonalButton(onClick = { onShowLogs(context) }) {
Icon(
painterResource(R.drawable.icon_description),
@@ -259,6 +263,7 @@ fun ErrorInfoActions(extraDetails: String?, modifier: Modifier = Modifier) {
}
}
}
}
@Composable