manager: fix logical confusion

This commit is contained in:
ShirkNeko
2025-11-04 12:22:49 +08:00
parent 18e60ededa
commit e99a14290f
2 changed files with 2 additions and 1 deletions

View File

@@ -162,7 +162,7 @@ fun HomeScreen(navigator: DestinationsNavigator) {
val shouldShowWarnings = viewModel.systemStatus.requireNewKernel ||
(viewModel.systemStatus.ksuVersion != null && !viewModel.systemStatus.isRootAvailable)
if (Natives.version >= Natives.MINIMAL_NEW_IOCTL_KERNEL && !shouldShowWarnings) {
if (Natives.version <= Natives.MINIMAL_NEW_IOCTL_KERNEL && !shouldShowWarnings) {
IncompatibleKernelCard()
Spacer(Modifier.height(12.dp))
}

View File

@@ -731,4 +731,5 @@ Important Note:\n
<string name="miui_uninstall_content">Proceeding with the uninstallation will not affect the core functionality of your root access. The root is designed to operate independently of this manager.</string>
<string name="incompatible_kernel_msg">
The current manager is incompatible with this kernel! Please upgrade the kernel to version %2$d or higher (currently %1$d)
</string>
</resources>