mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2025-01-18 21:26:48 -06:00
Fix crash on unknown attendance category type (#949)
This commit is contained in:
parent
9f85b2206a
commit
c30f105be5
@ -126,7 +126,7 @@ configurations.all {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation "io.github.wulkanowy:sdk:0.20.3"
|
||||
implementation "io.github.wulkanowy:sdk:0faa503"
|
||||
|
||||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.10'
|
||||
|
||||
|
@ -27,7 +27,7 @@ private fun calculatePercentage(presence: Double, absence: Double): Double {
|
||||
}
|
||||
|
||||
inline val Attendance.description
|
||||
get() = when (AttendanceCategory.valueOf(name)) {
|
||||
get() = when (AttendanceCategory.getCategoryByName(name)) {
|
||||
AttendanceCategory.PRESENCE -> R.string.attendance_present
|
||||
AttendanceCategory.ABSENCE_UNEXCUSED -> R.string.attendance_absence_unexcused
|
||||
AttendanceCategory.ABSENCE_EXCUSED -> R.string.attendance_absence_excused
|
||||
|
Loading…
x
Reference in New Issue
Block a user