Drop manual package-name entry now that auto-detection covers it
If an app is genuinely scoped in LSPosed, Veil already picks it up on its own. If it isn't scoped, typing its package name here wouldn't do anything anyway — the hook never runs in that process. The manual entry field was redundant either way. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -50,7 +50,6 @@ class SettingsActivity : AppCompatActivity() {
|
|||||||
private lateinit var hiddenPackagesChips: ChipGroup
|
private lateinit var hiddenPackagesChips: ChipGroup
|
||||||
private lateinit var helpContainer: View
|
private lateinit var helpContainer: View
|
||||||
private lateinit var helpToggle: MaterialButton
|
private lateinit var helpToggle: MaterialButton
|
||||||
private lateinit var packageInput: TextInputEditText
|
|
||||||
private lateinit var hiddenPackageInput: TextInputEditText
|
private lateinit var hiddenPackageInput: TextInputEditText
|
||||||
private var helpVisible = false
|
private var helpVisible = false
|
||||||
|
|
||||||
@@ -105,25 +104,14 @@ class SettingsActivity : AppCompatActivity() {
|
|||||||
|
|
||||||
root.addView(sectionTitle("Apps"))
|
root.addView(sectionTitle("Apps"))
|
||||||
root.addView(TextView(this).apply {
|
root.addView(TextView(this).apply {
|
||||||
text = "Add the package name of an app you've scoped this module to in LSPosed, " +
|
text = "Scope this module to a target app in LSPosed Manager, then open that app " +
|
||||||
"or just scope it in LSPosed and open the target app once — Veil picks it up " +
|
"once — it shows up here automatically. Apps not listed here get everything " +
|
||||||
"automatically. Apps not listed here get everything hidden by default."
|
"hidden by default."
|
||||||
textSize = 13f
|
textSize = 13f
|
||||||
alpha = 0.8f
|
alpha = 0.8f
|
||||||
setPadding(0, dp(4), 0, dp(8))
|
setPadding(0, dp(4), 0, dp(8))
|
||||||
})
|
})
|
||||||
|
|
||||||
packageInput = textInput("e.g. com.example.targetapp")
|
|
||||||
root.addView(addRow(packageInput) {
|
|
||||||
val pkg = packageInput.text.toString().trim()
|
|
||||||
if (pkg.isNotEmpty() && pkg.contains(".")) {
|
|
||||||
prefs.edit().putStringSet(Features.keyFor(pkg), Features.ALL.toMutableSet()).apply()
|
|
||||||
fixPermissions()
|
|
||||||
packageInput.setText("")
|
|
||||||
refreshAppList()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
appListContainer = LinearLayout(this).apply {
|
appListContainer = LinearLayout(this).apply {
|
||||||
orientation = LinearLayout.VERTICAL
|
orientation = LinearLayout.VERTICAL
|
||||||
setPadding(0, dp(8), 0, 0)
|
setPadding(0, dp(8), 0, 0)
|
||||||
@@ -232,7 +220,7 @@ class SettingsActivity : AppCompatActivity() {
|
|||||||
if (packages.isEmpty()) {
|
if (packages.isEmpty()) {
|
||||||
appListContainer.addView(TextView(this).apply {
|
appListContainer.addView(TextView(this).apply {
|
||||||
text = "No apps yet — scope Veil to a target app in LSPosed Manager and open " +
|
text = "No apps yet — scope Veil to a target app in LSPosed Manager and open " +
|
||||||
"it once, or add a package name above."
|
"it once."
|
||||||
textSize = 13f
|
textSize = 13f
|
||||||
alpha = 0.8f
|
alpha = 0.8f
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user