v3.19 任务页显示规则重写:按系列归并一行、完成即闭环、默认时间今天
This commit is contained in:
@@ -23,6 +23,15 @@ object Prefs {
|
||||
}
|
||||
sp.edit().putBoolean("ui_filter_status_all_migrated", true).apply()
|
||||
}
|
||||
// 时间筛选默认改为「今日」:原来的默认「全部」会把明天、下周、下个月的任务
|
||||
// 全摊在今天的列表里,看起来像"没设过的任务自己冒出来"。迁移只执行一次,
|
||||
// 用户之后手动切回「全部」不会被改回去。
|
||||
if (!sp.getBoolean("ui_filter_time_today_migrated", false)) {
|
||||
if (sp.getInt("ui_filter_time", 0) == 0) {
|
||||
sp.edit().putInt("ui_filter_time", 1).apply()
|
||||
}
|
||||
sp.edit().putBoolean("ui_filter_time_today_migrated", true).apply()
|
||||
}
|
||||
}
|
||||
|
||||
// ---- 时长 ----
|
||||
@@ -196,7 +205,7 @@ object Prefs {
|
||||
set(v) = sp.edit().putLong("ui_filter_project", v).apply()
|
||||
|
||||
var uiFilterTime: Int
|
||||
get() = sp.getInt("ui_filter_time", 0)
|
||||
get() = sp.getInt("ui_filter_time", 1)
|
||||
set(v) = sp.edit().putInt("ui_filter_time", v).apply()
|
||||
|
||||
var uiFilterPriority: Int
|
||||
|
||||
Reference in New Issue
Block a user