Lint
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package de.sebse.fuplanner2.ui.courses
|
||||
|
||||
import android.content.Context
|
||||
import android.content.res.Configuration
|
||||
import androidx.annotation.StringRes
|
||||
import androidx.compose.foundation.clickable
|
||||
@@ -10,7 +9,10 @@ import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.lazy.LazyColumn
|
||||
import androidx.compose.foundation.lazy.items
|
||||
import androidx.compose.material.*
|
||||
import androidx.compose.material.Card
|
||||
import androidx.compose.material.Icon
|
||||
import androidx.compose.material.MaterialTheme
|
||||
import androidx.compose.material.Text
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.outlined.Info
|
||||
import androidx.compose.material.icons.outlined.Person
|
||||
@@ -43,7 +45,13 @@ fun CourseItem(course: Course, onclick: () -> Unit) {
|
||||
title = course.title,
|
||||
lecturers = course.lecturers
|
||||
.filter { lecturer -> lecturer.isResponsible }
|
||||
.map { lecturer -> stringResource(R.string.full_name, lecturer.firstName.substring(0, 1)+".", lecturer.lastName) }
|
||||
.map { lecturer ->
|
||||
stringResource(
|
||||
R.string.full_name,
|
||||
lecturer.firstName.substring(0, 1) + ".",
|
||||
lecturer.lastName
|
||||
)
|
||||
}
|
||||
.joinToString(),
|
||||
type = course.type,
|
||||
onclick = onclick
|
||||
@@ -132,9 +140,11 @@ fun CourseListPreview() {
|
||||
type = "Type"
|
||||
)
|
||||
MdcTheme {
|
||||
CourseList(listOf(
|
||||
course, course, course
|
||||
)) { }
|
||||
CourseList(
|
||||
listOf(
|
||||
course, course, course
|
||||
)
|
||||
) { }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user