mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-10 12:47:26 +01:00
Small cleanup in WorkerInfoScreen
This commit is contained in:
parent
e183cbb231
commit
5aec8f8018
@ -150,9 +150,7 @@ class WorkerInfoScreen : Screen() {
|
|||||||
}
|
}
|
||||||
appendLine("State: ${workInfo.state}")
|
appendLine("State: ${workInfo.state}")
|
||||||
if (workInfo.state == WorkInfo.State.ENQUEUED) {
|
if (workInfo.state == WorkInfo.State.ENQUEUED) {
|
||||||
appendLine(
|
val timestamp = LocalDateTime.ofInstant(
|
||||||
"Next scheduled run: ${
|
|
||||||
LocalDateTime.ofInstant(
|
|
||||||
Instant.ofEpochMilli(workInfo.nextScheduleTimeMillis),
|
Instant.ofEpochMilli(workInfo.nextScheduleTimeMillis),
|
||||||
ZoneId.systemDefault(),
|
ZoneId.systemDefault(),
|
||||||
)
|
)
|
||||||
@ -161,8 +159,7 @@ class WorkerInfoScreen : Screen() {
|
|||||||
Injekt.get<UiPreferences>().dateFormat().get(),
|
Injekt.get<UiPreferences>().dateFormat().get(),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
}",
|
appendLine("Next scheduled run: $timestamp",)
|
||||||
)
|
|
||||||
appendLine("Attempt #${workInfo.runAttemptCount + 1}")
|
appendLine("Attempt #${workInfo.runAttemptCount + 1}")
|
||||||
}
|
}
|
||||||
appendLine()
|
appendLine()
|
||||||
|
Loading…
Reference in New Issue
Block a user