mirror of
https://github.com/awfixers-stuff/OwnDroid.git
synced 2026-03-23 11:05:59 +00:00
docs: bypass creating work profile restriction (#242)
Fix CI build pushing
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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() }
|
||||
)
|
||||
|
||||
@@ -111,7 +111,7 @@ fun myEntryProvider(
|
||||
backstack += dest
|
||||
}
|
||||
fun navigateUp() {
|
||||
backstack.removeLastOrNull()
|
||||
if (backstack.size > 1) backstack.removeLastOrNull()
|
||||
}
|
||||
fun navigateToAppGroups() {
|
||||
navigate(Destination.ManageAppGroups)
|
||||
|
||||
Reference in New Issue
Block a user