Show last error in tracker log
This commit is contained in:
@@ -58,7 +58,7 @@ fun trackDebugAD(
|
||||
append(" - ")
|
||||
bold {
|
||||
color(context.getThemeColor(materialR.attr.colorError, Color.RED)) {
|
||||
append(getString(R.string.error))
|
||||
append(item.lastError ?: getString(R.string.error))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,6 +11,7 @@ data class TrackDebugItem(
|
||||
val lastCheckTime: Instant?,
|
||||
val lastChapterDate: Instant?,
|
||||
val lastResult: Int,
|
||||
val lastError: String?,
|
||||
) : ListModel {
|
||||
|
||||
override fun areItemsTheSame(other: ListModel): Boolean {
|
||||
|
||||
@@ -31,6 +31,7 @@ class TrackerDebugViewModel @Inject constructor(
|
||||
lastCheckTime = it.track.lastCheckTime.toInstantOrNull(),
|
||||
lastChapterDate = it.track.lastChapterDate.toInstantOrNull(),
|
||||
lastResult = it.track.lastResult,
|
||||
lastError = it.track.lastError,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user