Skip to content

Commit

Permalink
Fix compilation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
TimOrtel committed Dec 1, 2023
1 parent d2e9328 commit edec5c7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 25 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.painter.Painter
import androidx.compose.ui.graphics.vector.rememberVectorPainter
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontWeight
Expand All @@ -45,18 +44,13 @@ import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import androidx.core.graphics.toColorInt
import coil.compose.rememberAsyncImagePainter
import coil.request.ImageRequest
import de.tum.informatics.www1.artemis.native_app.core.model.Course
import de.tum.informatics.www1.artemis.native_app.core.model.CourseWithScore
import de.tum.informatics.www1.artemis.native_app.core.ui.LocalCourseImageProvider
import de.tum.informatics.www1.artemis.native_app.core.ui.R
import de.tum.informatics.www1.artemis.native_app.core.ui.common.AutoResizeText
import de.tum.informatics.www1.artemis.native_app.core.ui.common.FontSizeRange
import de.tum.informatics.www1.artemis.native_app.core.ui.getWindowSizeClass
import io.ktor.http.HttpHeaders
import io.ktor.http.URLBuilder
import io.ktor.http.appendPathSegments

private val headerHeight = 80.dp

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import de.tum.informatics.www1.artemis.native_app.core.common.test.testServerUrl
import de.tum.informatics.www1.artemis.native_app.feature.login.test.getAdminAccessToken
import de.tum.informatics.www1.artemis.native_app.feature.login.test.user1Username
import de.tum.informatics.www1.artemis.native_app.feature.metis.manageconversations.R
import de.tum.informatics.www1.artemis.native_app.feature.metis.manageconversations.ui.conversation.settings.overview.ConversationSettingsViewModel
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.withTimeout
import org.junit.Test
Expand Down Expand Up @@ -79,9 +78,9 @@ internal class ChannelSettingsE2eTest : ConversationSettingsBaseE2eTest() {
}
}

val viewModel = setupUiAndViewModel(channel)
setupUiAndViewModel(channel)

archiveOrUnarchiveChannelImpl(true, viewModel)
archiveOrUnarchiveChannelImpl(true)
}

@Test(timeout = DefaultTestTimeoutMillis)
Expand Down Expand Up @@ -110,12 +109,12 @@ internal class ChannelSettingsE2eTest : ConversationSettingsBaseE2eTest() {
}
}

val viewModel = setupUiAndViewModel(channel)
setupUiAndViewModel(channel)

archiveOrUnarchiveChannelImpl(false, viewModel)
archiveOrUnarchiveChannelImpl(false)
}

private fun archiveOrUnarchiveChannelImpl(archive: Boolean, viewModel: ConversationSettingsViewModel) {
private fun archiveOrUnarchiveChannelImpl(archive: Boolean) {
val doArchiveButtonText =
context.getString(R.string.conversation_settings_section_other_archive_channel)
val doUnarchiveButtonText =
Expand Down

0 comments on commit edec5c7

Please sign in to comment.