竖屏删工作中提示;横屏时间加大到130sp、下方文字统一规格收紧间距;版本 1.3

This commit is contained in:
XIGE
2026-11-29 14:40:59 +08:00
parent 65dd5bfe91
commit c0182de5e5
5 changed files with 19 additions and 22 deletions

View File

@@ -156,11 +156,6 @@ class LockScreenActivity : AppCompatActivity() {
tvClock.text = clockFmt.format(cal.time)
tvCountdown.text = Dates.clock(now)
// 工作中/休息中提示只有竖屏布局有(横屏排版里删掉了),横屏下 findViewById 返回 null
findViewById<TextView>(R.id.tvLockMode)?.text = getString(
if (TimerCore.mode == TimerCore.MODE_FOCUS) R.string.lock_mode_focus else R.string.lock_mode_break
)
val task = if (TimerCore.taskId > 0) Store.task(TimerCore.taskId)?.title else null
tvTask.text = task?.takeIf { it.isNotBlank() } ?: getString(R.string.notif_no_task)
}