Skip to content

Commit

Permalink
Stop calling API while building UI (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksharma-xyz authored Sep 28, 2024
1 parent b9cceb8 commit 94343e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/kotlin/xyz/ksharma/krail/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class MainActivity : ComponentActivity() {
*/

// Seven Hills to New Town
var tripResponse =
/*var tripResponse =
tripPlanningRepo.trip(originStopId = "214710", destinationStopId = "204210")
tripResponse.onSuccess { trip ->
Timber.d("Journeys: ${trip.journeys?.size}")
Expand Down Expand Up @@ -91,7 +91,7 @@ class MainActivity : ComponentActivity() {
}
}.onFailure {
Timber.e("error: ${it.message}")
}
}*/
}

setContent {
Expand Down

0 comments on commit 94343e0

Please sign in to comment.