项目排序模式序号与置顶;横屏锁屏遮状态栏、排版对称化;版本 1.2

This commit is contained in:
XIGE
2026-11-29 14:20:09 +08:00
parent bc01e0ac67
commit fd674322a1
11 changed files with 140 additions and 42 deletions

View File

@@ -128,7 +128,11 @@ class ProjectsFragment : Fragment(R.layout.fragment_projects) {
when {
which == 0 -> ProjectSheet(requireContext(), p) { reload() }.show()
which == 1 && !isInbox -> {
Store.updateProject(p.id, p.name, p.color, !p.archived)
// 归档/取消归档只切 archived,序号与置顶状态原样保留
Store.updateProject(
p.id, p.name, p.color, !p.archived,
p.sortIndex, p.pinnedAt > 0, p.pinnedAt,
)
reload()
}
which == 2 && !isInbox -> confirmDelete(p)