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,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ buildscript {
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:8.5.0'
|
||||
classpath 'com.android.tools.build:gradle:8.5.1'
|
||||
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.24'
|
||||
classpath 'com.google.dagger:hilt-android-gradle-plugin:2.51.1'
|
||||
classpath 'com.google.devtools.ksp:symbol-processing-gradle-plugin:1.9.24-1.0.20'
|
||||
|
||||
Reference in New Issue
Block a user