@@ -24,7 +24,6 @@ import com.stop.ui.alarmsetting.AlarmSettingFragment.Companion.ALARM_MAP_CODE
24
24
import com.stop.ui.alarmsetting.AlarmSettingViewModel
25
25
import com.stop.ui.placesearch.PlaceSearchViewModel
26
26
import com.stop.ui.util.Marker
27
- import com.stop.util.getScreenSize
28
27
import kotlinx.coroutines.launch
29
28
30
29
class MapFragment : Fragment (), MapHandler {
@@ -125,6 +124,7 @@ class MapFragment : Fragment(), MapHandler {
125
124
}
126
125
127
126
binding.homePanel.viewPanelStart.setOnClickListener {
127
+ placeSearchViewModel.setPanelVisibility(View .INVISIBLE )
128
128
findNavController().apply {
129
129
setGraph(R .navigation.route_nav_graph)
130
130
navigate(
@@ -135,6 +135,7 @@ class MapFragment : Fragment(), MapHandler {
135
135
}
136
136
137
137
binding.homePanel.viewPanelEnd.setOnClickListener {
138
+ placeSearchViewModel.setPanelVisibility(View .INVISIBLE )
138
139
findNavController().apply {
139
140
setGraph(R .navigation.route_nav_graph)
140
141
navigate(
@@ -234,27 +235,13 @@ class MapFragment : Fragment(), MapHandler {
234
235
}
235
236
236
237
private fun setViewVisibility () {
237
- with (binding) {
238
+ with (binding) {
238
239
textViewSearch.visibility = mapUIVisibility
239
240
layoutCompass.visibility = mapUIVisibility
240
241
layoutCurrent.visibility = mapUIVisibility
241
242
}
242
243
}
243
244
244
- private fun listenButtonClick () {
245
- binding.homeBottomSheet.layoutStateExpanded.viewAlarm.setOnClickListener {
246
- alarmViewModel.deleteAlarm()
247
- turnOffSoundService()
248
- val behavior = BottomSheetBehavior .from(binding.layoutHomeBottomSheet)
249
- behavior.state = BottomSheetBehavior .STATE_COLLAPSED
250
- }
251
- }
252
-
253
- private fun turnOffSoundService () {
254
- val intent = Intent (context, SoundService ::class .java)
255
- requireContext().stopService(intent)
256
- }
257
-
258
245
override fun onResume () {
259
246
super .onResume()
260
247
0 commit comments