Skip to content

Commit

Permalink
Merge pull request #1213 from joreilly/room_order
Browse files Browse the repository at this point in the history
fix room order in session list
  • Loading branch information
joreilly authored Mar 29, 2024
2 parents c153c1e + 63e4413 commit bc7e347
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,14 @@ fun SessionListView(
) {
LazyColumn(state = listState) {
sessions.forEach { (startTime, sessions) ->

stickyHeader {
ConfettiHeaderAndroid(icon = Icons.Filled.AccessTime, text = startTime)
}

items(sessions) { session ->
val sortedSessions =
sessions.sortedBy { session -> uiState.rooms.indexOfFirst { it.name == session.room?.name } }
items(sortedSessions) { session ->
SessionItemView(
session = session,
sessionSelected = sessionSelected,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@ import androidx.compose.material3.Text
import androidx.compose.material3.windowsizeclass.WindowSizeClass
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import dev.johnoreilly.confetti.ui.component.ConfettiBackground

@OptIn(ExperimentalMaterial3Api::class)
@Composable
Expand All @@ -42,7 +39,7 @@ fun HomeScaffold(
Text(
modifier = Modifier
.fillMaxWidth()
.padding(horizontal = 32.dp),
.padding(horizontal = 8.dp),
maxLines = 2,
textAlign = TextAlign.Center,
text = title ?: "",
Expand Down
2 changes: 1 addition & 1 deletion fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ default_platform :android

platform :android do

androidVersionNum = 228
androidVersionNum = 230
wearVersionNum = 325

before_all do
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ decompose = "2.2.2"
essenty = "1.3.0"
googleid = "1.1.0"
horologist = "0.6.6"
image-loader = "1.7.7"
image-loader = "1.7.8"
io-coil-kt = "2.6.0"
kmp-nativecoroutines = "1.0.0-ALPHA-24"
kmp-nativecoroutines = "1.0.0-ALPHA-25"
kmm-viewmodel = "1.0.0-ALPHA-20"
koin-android = "3.5.3"
koin-android-compose = "3.5.3"
Expand Down

0 comments on commit bc7e347

Please sign in to comment.