manager: removed reduce sparse image button from settings

This commit is contained in:
rifsxd
2025-01-03 16:04:17 +06:00
parent 6379d70590
commit 24e5e012f3

View File

@@ -325,27 +325,27 @@ fun SettingScreen(navigator: DestinationsNavigator) {
)
}
val shrink = stringResource(id = R.string.shrink_sparse_image)
val shrinkMessage = stringResource(id = R.string.shrink_sparse_image_message)
ListItem(
leadingContent = {
Icon(
Icons.Filled.Compress,
shrink
)
},
headlineContent = { Text(shrink) },
modifier = Modifier.clickable {
scope.launch {
val result = shrinkDialog.awaitConfirm(title = shrink, content = shrinkMessage)
if (result == ConfirmResult.Confirmed) {
loadingDialog.withLoading {
shrinkModules()
}
}
}
}
)
// val shrink = stringResource(id = R.string.shrink_sparse_image)
// val shrinkMessage = stringResource(id = R.string.shrink_sparse_image_message)
// ListItem(
// leadingContent = {
// Icon(
// Icons.Filled.Compress,
// shrink
// )
// },
// headlineContent = { Text(shrink) },
// modifier = Modifier.clickable {
// scope.launch {
// val result = shrinkDialog.awaitConfirm(title = shrink, content = shrinkMessage)
// if (result == ConfirmResult.Confirmed) {
// loadingDialog.withLoading {
// shrinkModules()
// }
// }
// }
// }
// )
val lkmMode = Natives.version >= Natives.MINIMAL_SUPPORTED_KERNEL_LKM && Natives.isLkmMode
if (lkmMode) {