Skip to content

Commit

Permalink
fix: 添加替换规则分组
Browse files Browse the repository at this point in the history
  • Loading branch information
jing332 committed Dec 30, 2023
1 parent f595abc commit 87213f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ internal fun ManagerScreen(vm: ManagerViewModel = viewModel(), finish: () -> Uni
title = stringResource(id = R.string.add_group),
text = text,
onTextChange = { text = it },
onDismissRequest = { showAddGroupDialog = false }) {
appDb.replaceRuleDao.insert(ReplaceRule(name = text))
}
onDismissRequest = { showAddGroupDialog = false },
onConfirm = {
appDb.replaceRuleDao.insertGroup(ReplaceRuleGroup(name = text))
}
)
}

var showGroupEditDialog by remember { mutableStateOf<ReplaceRuleGroup?>(null) }
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
buildscript {
ext {
kotlin_version = '1.9.10'
agp_version = '8.2.0-alpha16'
agp_version = '8.2.0'
compose_compiler = "1.5.3"
room_version = '2.5.2'
ksp_version = '1.9.10-1.0.13'
Expand Down

0 comments on commit 87213f0

Please sign in to comment.