From 3270b808a27fe5a1de3c377e081a1ba585873bbc Mon Sep 17 00:00:00 2001 From: nift4 Date: Sun, 28 Jul 2024 16:38:54 +0200 Subject: [PATCH] dont allow to delete main os lol --- app/src/main/java/org/andbootmgr/app/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/andbootmgr/app/MainActivity.kt b/app/src/main/java/org/andbootmgr/app/MainActivity.kt index 6c94889a..253d95b6 100644 --- a/app/src/main/java/org/andbootmgr/app/MainActivity.kt +++ b/app/src/main/java/org/andbootmgr/app/MainActivity.kt @@ -921,7 +921,7 @@ private fun PartTool(vm: MainActivityState) { } }, confirmButton = { - if (f != null) { + if (f != null && e["xpart"] != "real") { Button( onClick = { f!!.delete()