@@ -78,6 +78,7 @@ import li.songe.gkd.ui.component.TextMenu
7878import li.songe.gkd.ui.component.TextSwitch
7979import li.songe.gkd.ui.component.autoFocus
8080import li.songe.gkd.ui.component.updateDialogOptions
81+ import li.songe.gkd.ui.component.waitResult
8182import li.songe.gkd.ui.share.LocalMainViewModel
8283import li.songe.gkd.ui.share.asMutableState
8384import li.songe.gkd.ui.style.EmptyHeight
@@ -381,9 +382,16 @@ fun useSettingsPage(): ScaffoldExt {
381382
382383 TextSwitch (
383384 title = " 后台隐藏" ,
384- subtitle = " 在「最近任务」隐藏本应用 " ,
385+ subtitle = " 在「最近任务」隐藏卡片 " ,
385386 checked = store.excludeFromRecents,
386- onCheckedChange = {
387+ onCheckedChange = vm.viewModelScope.launchAsFn<Boolean > {
388+ if (it) {
389+ mainVm.dialogFlow.waitResult(
390+ title = " 后台隐藏" ,
391+ text = " 隐藏卡片后可能导致部分设备无法给任务卡片加锁后台,建议先加锁后再隐藏,若已加锁或没有锁后台机制请继续" ,
392+ confirmText = " 继续" ,
393+ )
394+ }
387395 storeFlow.value = store.copy(
388396 excludeFromRecents = ! store.excludeFromRecents
389397 )
@@ -406,7 +414,7 @@ fun useSettingsPage(): ScaffoldExt {
406414 }
407415 TextSwitch (
408416 title = " 局部关闭" ,
409- subtitle = " 白名单应用内关闭无障碍 " ,
417+ subtitle = " 白名单内关闭无障碍 " ,
410418 checked = store.enableBlockA11yAppList && shizukuContextFlow.collectAsState().value.ok,
411419 onCheckedChange = vm.viewModelScope.launchAsFn<Boolean > {
412420 if (it) {
0 commit comments