From a83c20b667cf615ff9969ee0fd195500b4e13347 Mon Sep 17 00:00:00 2001 From: rifsxd Date: Tue, 27 May 2025 03:00:04 +0600 Subject: [PATCH] manager: removed the logic for if overlayfs is not found then show warning in module screen since magic_mount is the default mount system and if overlayfs is not available we cant swtich to use overlayfs anyways --- .../src/main/java/com/rifsxd/ksunext/ui/screen/Module.kt | 6 ------ .../java/com/rifsxd/ksunext/ui/viewmodel/ModuleViewModel.kt | 5 ----- 2 files changed, 11 deletions(-) diff --git a/manager/app/src/main/java/com/rifsxd/ksunext/ui/screen/Module.kt b/manager/app/src/main/java/com/rifsxd/ksunext/ui/screen/Module.kt index 91de6044..b5803e5d 100644 --- a/manager/app/src/main/java/com/rifsxd/ksunext/ui/screen/Module.kt +++ b/manager/app/src/main/java/com/rifsxd/ksunext/ui/screen/Module.kt @@ -381,12 +381,6 @@ private fun ModuleList( val hasShownWarning = rememberSaveable { mutableStateOf(prefs.getBoolean("has_shown_warning", false)) } - var useOverlayFs by rememberSaveable { - mutableStateOf( - prefs.getBoolean("use_overlay_fs", false) - ) - } - val loadingDialog = rememberLoadingDialog() val confirmDialog = rememberConfirmDialog() diff --git a/manager/app/src/main/java/com/rifsxd/ksunext/ui/viewmodel/ModuleViewModel.kt b/manager/app/src/main/java/com/rifsxd/ksunext/ui/viewmodel/ModuleViewModel.kt index 69221aef..c122e302 100644 --- a/manager/app/src/main/java/com/rifsxd/ksunext/ui/viewmodel/ModuleViewModel.kt +++ b/manager/app/src/main/java/com/rifsxd/ksunext/ui/viewmodel/ModuleViewModel.kt @@ -22,7 +22,6 @@ import java.util.Locale import com.rifsxd.ksunext.ksuApp import com.rifsxd.ksunext.ui.util.HanziToPinyin import com.rifsxd.ksunext.ui.util.listModules -import com.rifsxd.ksunext.ui.util.overlayFsAvailable import org.json.JSONArray import org.json.JSONObject @@ -57,9 +56,6 @@ class ModuleViewModel : ViewModel() { val changelog: String, ) - var isOverlayAvailable by mutableStateOf(overlayFsAvailable()) - private set - var isRefreshing by mutableStateOf(false) private set @@ -115,7 +111,6 @@ class ModuleViewModel : ViewModel() { val oldModuleList = modules kotlin.runCatching { - isOverlayAvailable = overlayFsAvailable() val result = listModules() Log.i(TAG, "result: $result")