mirror of
https://github.com/n08i40k/polytechnic-android.git
synced 2025-12-06 09:47:48 +03:00
Экзамен отображается не как зачёт.
This commit is contained in:
@@ -18,4 +18,5 @@ enum class LessonType(val value: Int) {
|
||||
INDEPENDENT_WORK(4),
|
||||
EXAM(5),
|
||||
EXAM_WITH_GRADE(6),
|
||||
EXAM_DEFAULT(7)
|
||||
}
|
||||
@@ -14,7 +14,7 @@ class ScheduleGet(
|
||||
) : CachedRequest(
|
||||
context,
|
||||
Method.GET,
|
||||
"v3/schedule/group",
|
||||
"v4/schedule/group",
|
||||
{ listener.onResponse(Json.decodeFromString(it)) },
|
||||
errorListener
|
||||
) {
|
||||
|
||||
@@ -150,6 +150,7 @@ fun DayCard(
|
||||
LessonType.INDEPENDENT_WORK -> customCardColors
|
||||
LessonType.EXAM -> examCardColors
|
||||
LessonType.EXAM_WITH_GRADE -> examCardColors
|
||||
LessonType.EXAM_DEFAULT -> examCardColors
|
||||
}
|
||||
|
||||
val mutableExpanded = remember { mutableStateOf(false) }
|
||||
|
||||
@@ -194,6 +194,7 @@ private fun LessonViewRow(
|
||||
LessonType.INDEPENDENT_WORK -> stringResource(R.string.lesson_type_independent_work)
|
||||
LessonType.EXAM -> stringResource(R.string.lesson_type_exam)
|
||||
LessonType.EXAM_WITH_GRADE -> stringResource(R.string.lesson_type_exam_with_grade)
|
||||
LessonType.EXAM_DEFAULT -> stringResource(R.string.lesson_type_exam_default)
|
||||
else -> throw Error("Unknown lesson type!")
|
||||
},
|
||||
fontWeight = FontWeight.Bold,
|
||||
|
||||
@@ -84,4 +84,5 @@
|
||||
<string name="lesson_type_independent_work">Самостоятельная работа</string>
|
||||
<string name="lesson_type_exam">ЗАЧЁТ</string>
|
||||
<string name="lesson_type_exam_with_grade">ЗАЧЁТ С ОЦЕНКОЙ</string>
|
||||
<string name="lesson_type_exam_default">ЭКЗАМЕН</string>
|
||||
</resources>
|
||||
@@ -82,6 +82,7 @@
|
||||
<string name="failed_to_fetch_teacher_names">Failed to fetch teacher names!</string>
|
||||
<string name="lesson_type_consultation">Consultation</string>
|
||||
<string name="lesson_type_independent_work">Independent work</string>
|
||||
<string name="lesson_type_exam">EXAM</string>
|
||||
<string name="lesson_type_exam_with_grade">EXAM WITH GRADE</string>
|
||||
<string name="lesson_type_exam">EXAM*</string>
|
||||
<string name="lesson_type_exam_with_grade">EXAM* WITH GRADE</string>
|
||||
<string name="lesson_type_exam_default">EXAM</string>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user