Skip to content

Commit

Permalink
Correct backing field name
Browse files Browse the repository at this point in the history
Co-Authored-By: Oliver Smith <67012037+01smito01@users.noreply.github.com>
  • Loading branch information
darryl-lynch and 01smito01 committed Jan 3, 2025
1 parent 3fe7446 commit 7072bfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class ProjectGeometryViewModel(val app: Application) : AndroidViewModel(app) {

// state flow of a point and its projection for presentation in UI
private val _pointProjectionFlow = MutableStateFlow<PointProjection?>(null)
val pointFlow = _pointProjectionFlow.asStateFlow()
val pointProjectionFlow = _pointProjectionFlow.asStateFlow()

// setup the red pin marker image as bitmap drawable
private val markerDrawable: BitmapDrawable by lazy {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import java.util.Locale
@Composable
fun ProjectGeometryScreen(sampleName: String) {
val mapViewModel: ProjectGeometryViewModel = viewModel()
val projectionInfo by mapViewModel.pointFlow.collectAsState()
val projectionInfo by mapViewModel.pointProjectionFlow.collectAsState()

val infoText =
if (projectionInfo == null) {
Expand Down

0 comments on commit 7072bfd

Please sign in to comment.