[修复] 目录无法进入选择模式的问题

This commit is contained in:
HapeLee
2026-03-10 00:12:26 +08:00
parent f8b24b9588
commit 30ba19e00d
@@ -15,13 +15,13 @@ class TxtTocRuleActivity : BaseComposeActivity() {
AppTheme {
TxtRuleScreen(
initialRule = initialRule,
onPickRule = { rule ->
onPickRule = if (initialRule != null) { rule ->
val data = Intent().apply {
putExtra("tocRegex", rule)
}
setResult(RESULT_OK, data)
finish()
},
} else null,
onBackClick = { finish() }
)
}