Skip to content

Commit

Permalink
Merge pull request #230 from SWM-KAWAI-MANS/PAR-384
Browse files Browse the repository at this point in the history
#PAR-384 : GoogleMap isMyLocationEnabled property Exception 처리
  • Loading branch information
nohjunh authored Oct 14, 2023
2 parents f0ac86c + 1850def commit 49119e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ private fun BattleResultBody(
.heightIn(400.dp) // 지도의 높이는 400dp
) {
MapWidget(
isFromMyPage = isFromMyPage,
targetDistanceFormatted = battleResult.targetDistanceFormatted,
records = selectedRunner?.records
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import online.partyrun.partyrunapplication.feature.running_result.R

@Composable
fun MapWidget(
isFromMyPage: Boolean = false,
targetDistanceFormatted: String,
records: List<RunnerRecordUiModel>?,
) {
Expand All @@ -61,7 +62,7 @@ fun MapWidget(
.fillMaxWidth(),
properties = MapProperties(
isBuildingEnabled = true,
isMyLocationEnabled = true
isMyLocationEnabled = !isFromMyPage // 마이페이지로부터 조회하는 경우에는 현재 위치 보여줄 필요 없음
),
uiSettings = MapUiSettings(
zoomControlsEnabled = false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ private fun SingleResultBody(
.heightIn(400.dp) // 지도의 높이는 400dp
) {
MapWidget(
isFromMyPage = isFromMyPage,
targetDistanceFormatted = singleResult.targetDistanceFormatted,
records = singleResult.singleRunnerStatus.records
)
Expand Down

0 comments on commit 49119e6

Please sign in to comment.