docs: bypass creating work profile restriction (#242)

Fix CI build pushing
This commit is contained in:
BinTianqi
2026-02-17 15:44:11 +08:00
parent 2cd2ce4449
commit 9cc465f2d6
6 changed files with 39 additions and 14 deletions

View File

@@ -179,7 +179,7 @@ fun registerPackageRemovedReceiver(
ctx.registerReceiver(br, filter)
}
fun parsePackageNames(input: String) = input.split('\n').filter { it.isNotEmpty() }
fun parsePackageNames(input: String) = input.lines().filter { it.isNotEmpty() }
val getInstalledAppsFlags =
if(Build.VERSION.SDK_INT >= 24) PackageManager.MATCH_DISABLED_COMPONENTS or PackageManager.MATCH_UNINSTALLED_PACKAGES else 0

View File

@@ -423,7 +423,7 @@ fun PackageNameTextField(
Icon(Icons.AutoMirrored.Default.List, null)
}
},
isError = value.isNotEmpty() && !value.isValidPackageName,
isError = value.lines().filter { it.isNotEmpty() }.all { it.isValidPackageName },
keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Ascii, imeAction = ImeAction.Done),
keyboardActions = KeyboardActions { fm.clearFocus() }
)

View File

@@ -111,7 +111,7 @@ fun myEntryProvider(
backstack += dest
}
fun navigateUp() {
backstack.removeLastOrNull()
if (backstack.size > 1) backstack.removeLastOrNull()
}
fun navigateToAppGroups() {
navigate(Destination.ManageAppGroups)