manager: Only display the option to use LKM files when the kernel version is greater than 5.10
This commit is contained in:
@@ -353,6 +353,7 @@ fun InstallScreen(
|
|||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.padding(16.dp)
|
.padding(16.dp)
|
||||||
) {
|
) {
|
||||||
|
if (isGKI) {
|
||||||
// 使用本地的LKM文件
|
// 使用本地的LKM文件
|
||||||
ElevatedCard(
|
ElevatedCard(
|
||||||
colors = getCardColors(MaterialTheme.colorScheme.surfaceVariant),
|
colors = getCardColors(MaterialTheme.colorScheme.surfaceVariant),
|
||||||
@@ -386,6 +387,7 @@ fun InstallScreen(
|
|||||||
.clickable { onLkmUpload() }
|
.clickable { onLkmUpload() }
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
(installMethod as? InstallMethod.HorizonKernel)?.let { method ->
|
(installMethod as? InstallMethod.HorizonKernel)?.let { method ->
|
||||||
if (method.slot != null) {
|
if (method.slot != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user