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
This commit is contained in:
rifsxd
2025-05-27 03:00:04 +06:00
parent d5c4f85d73
commit a83c20b667
2 changed files with 0 additions and 11 deletions

View File

@@ -381,12 +381,6 @@ private fun ModuleList(
val hasShownWarning = val hasShownWarning =
rememberSaveable { mutableStateOf(prefs.getBoolean("has_shown_warning", false)) } rememberSaveable { mutableStateOf(prefs.getBoolean("has_shown_warning", false)) }
var useOverlayFs by rememberSaveable {
mutableStateOf(
prefs.getBoolean("use_overlay_fs", false)
)
}
val loadingDialog = rememberLoadingDialog() val loadingDialog = rememberLoadingDialog()
val confirmDialog = rememberConfirmDialog() val confirmDialog = rememberConfirmDialog()

View File

@@ -22,7 +22,6 @@ import java.util.Locale
import com.rifsxd.ksunext.ksuApp import com.rifsxd.ksunext.ksuApp
import com.rifsxd.ksunext.ui.util.HanziToPinyin import com.rifsxd.ksunext.ui.util.HanziToPinyin
import com.rifsxd.ksunext.ui.util.listModules import com.rifsxd.ksunext.ui.util.listModules
import com.rifsxd.ksunext.ui.util.overlayFsAvailable
import org.json.JSONArray import org.json.JSONArray
import org.json.JSONObject import org.json.JSONObject
@@ -57,9 +56,6 @@ class ModuleViewModel : ViewModel() {
val changelog: String, val changelog: String,
) )
var isOverlayAvailable by mutableStateOf(overlayFsAvailable())
private set
var isRefreshing by mutableStateOf(false) var isRefreshing by mutableStateOf(false)
private set private set
@@ -115,7 +111,6 @@ class ModuleViewModel : ViewModel() {
val oldModuleList = modules val oldModuleList = modules
kotlin.runCatching { kotlin.runCatching {
isOverlayAvailable = overlayFsAvailable()
val result = listModules() val result = listModules()
Log.i(TAG, "result: $result") Log.i(TAG, "result: $result")