manager: fix status card startActivity intent fallback to not allow lkm install on non gki

This commit is contained in:
Rifat Azad
2025-06-24 09:53:20 +06:00
parent b3b7ef1cb3
commit dc7ae2db5f

View File

@@ -328,8 +328,10 @@ private fun StatusCard(
intent.addFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK) intent.addFlags(android.content.Intent.FLAG_ACTIVITY_NEW_TASK)
if (ksuVersion != null) { if (ksuVersion != null) {
context.startActivity(intent) context.startActivity(intent)
} else { } else if (ksuVersion == null && kernelVersion.isGKI()) {
onClickInstall() onClickInstall()
} else {
Toast.makeText(context, "Something weird happened... 🤔", Toast.LENGTH_SHORT).show()
} }
} else if (ksuVersion == null && kernelVersion.isGKI()) { } else if (ksuVersion == null && kernelVersion.isGKI()) {
onClickInstall() onClickInstall()