Skip to content

Commit c336cd6

Browse files
committed
fix: 화면 이동 시 장소 패널이 사라지지 않던 버그 수정
1 parent af2e383 commit c336cd6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

presentation/src/main/java/com/stop/ui/map/MapFragment.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ class MapFragment : Fragment(), MapHandler {
243243
}
244244

245245
override fun onDestroyView() {
246+
placeSearchViewModel.setPanelVisibility(binding.homePanel.layoutPanel.visibility)
246247
binding.layoutContainer.removeView(tMap.tMapView)
247248
_binding = null
248249

presentation/src/main/java/com/stop/ui/placesearch/PlaceSearchViewModel.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,7 @@ class PlaceSearchViewModel @Inject constructor(
145145
}
146146
}
147147

148+
fun setPanelVisibility(panelVisibility: Int) {
149+
_panelVisibility.value = panelVisibility
150+
}
148151
}

0 commit comments

Comments
 (0)