forked from geode-sdk/android-launcher
also hide button in generic crash
This commit is contained in:
1 file changed
+5
@@ -248,6 +248,10 @@ fun ErrorInfoActions(extraDetails: String?, modifier: Modifier = Modifier) {
|
|||||||
Text(stringResource(R.string.launcher_error_export_crash))
|
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) }) {
|
FilledTonalButton(onClick = { onShowLogs(context) }) {
|
||||||
Icon(
|
Icon(
|
||||||
painterResource(R.drawable.icon_description),
|
painterResource(R.drawable.icon_description),
|
||||||
@@ -258,6 +262,7 @@ fun ErrorInfoActions(extraDetails: String?, modifier: Modifier = Modifier) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user