v0.3.0:今日筛选含逾期与今日完成、统计今日区间、重复任务自动滚动、通知自定义布局

This commit is contained in:
XIGE
2026-11-28 01:07:24 +08:00
parent 7c8dc3d0de
commit 3e237fafdb
11 changed files with 301 additions and 56 deletions

View File

@@ -85,6 +85,13 @@ class MainActivity : AppCompatActivity() {
super.onSaveInstanceState(outState)
}
override fun onResume() {
// 进程常驻时跨天不会重走 App.onCreate,回到前台再滚一次重复任务。
// 放在 super 之前:片段 onResume 里的 reload 读到的就是推进后的日期。
runCatching { com.focusbox.app.data.Store.rollRepeatingTasks() }
super.onResume()
}
override fun onNewIntent(intent: Intent?) {
super.onNewIntent(intent)
val tab = intent?.getIntExtra(EXTRA_TAB, -1) ?: -1