File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
presentation/src/main/java/com/stop/ui/map Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -72,8 +72,6 @@ class MapFragment : Fragment(), MapHandler {
72
72
}
73
73
74
74
private fun initBinding () {
75
- alarmViewModel.getAlarm()
76
-
77
75
binding.lifecycleOwner = viewLifecycleOwner
78
76
binding.alarmViewModel = alarmViewModel
79
77
binding.placeSearchViewModel = placeSearchViewModel
@@ -284,8 +282,12 @@ class MapFragment : Fragment(), MapHandler {
284
282
}
285
283
286
284
private fun showBottomSheet () {
285
+ alarmViewModel.getAlarm()
287
286
val behavior = BottomSheetBehavior .from(binding.layoutHomeBottomSheet)
288
287
behavior.state = BottomSheetBehavior .STATE_EXPANDED
288
+ binding.homeBottomSheet.layoutStateExpanded.root.visibility = View .VISIBLE
289
+ binding.homeBottomSheet.textViewAlarmState.visibility = View .GONE
290
+ binding.homeBottomSheet.homeBottomSheetDragHandle.visibility = View .GONE
289
291
}
290
292
291
293
override fun onDestroyView () {
You can’t perform that action at this time.
0 commit comments