Skip to content

Commit

Permalink
fix(StopDetailsFilteredRouteView): Don't crash on return from background
Browse files Browse the repository at this point in the history
  • Loading branch information
KaylaBrady committed Jan 17, 2025
1 parent 646d482 commit a805047
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.verticalScroll
import androidx.compose.material3.HorizontalDivider
import androidx.compose.runtime.Composable
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.colorResource
Expand Down Expand Up @@ -51,10 +50,8 @@ fun StopDetailsFilteredRouteView(
return
}

val data =
rememberSaveable(departures) {
departures.stopDetailsFormattedTrips(stopFilter.routeId, stopFilter.directionId, now)
}
// TODO: Parcelize, or store departures in this format in the VM?
val data = departures.stopDetailsFormattedTrips(stopFilter.routeId, stopFilter.directionId, now)

val alerts: List<Alert> =
if (expectedDirection != null && global != null) {
Expand Down

0 comments on commit a805047

Please sign in to comment.