You've already forked KernelSU-Next
mirror of
https://github.com/KernelSU-Next/KernelSU-Next.git
synced 2025-08-27 23:46:34 +00:00
manager: fix status card startActivity intent fallback to not allow lkm install on non gki
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user