diff --git a/app/src/main/java/com/project/meongcare/MainActivity.kt b/app/src/main/java/com/project/meongcare/MainActivity.kt index a0b9baa7d..bb918584d 100644 --- a/app/src/main/java/com/project/meongcare/MainActivity.kt +++ b/app/src/main/java/com/project/meongcare/MainActivity.kt @@ -138,8 +138,20 @@ class MainActivity : AppCompatActivity() { floatingButtonMenuIn(activityMainBinding) delay(550L) overlayLayout.visibility = View.GONE - fragmentContainerView.findNavController().navigate(R.id.excretaFragment) + + // 대소변 기능 업데이트 후 삭제 + includeMedicalRecordDialog.run { + root.visibility = View.VISIBLE + constraintlayoutBg.setOnClickListener { + includeMedicalRecordDialog.root.visibility = View.GONE + } + buttonOk.setOnClickListener { + includeMedicalRecordDialog.root.visibility = View.GONE + } + } + //fragmentContainerView.findNavController().navigate(R.id.excretaFragment) } + } menuDogFoodAdd.setOnClickListener { diff --git a/app/src/main/java/com/project/meongcare/home/view/HomeFragment.kt b/app/src/main/java/com/project/meongcare/home/view/HomeFragment.kt index 9ad173f72..9c534d3d7 100644 --- a/app/src/main/java/com/project/meongcare/home/view/HomeFragment.kt +++ b/app/src/main/java/com/project/meongcare/home/view/HomeFragment.kt @@ -270,7 +270,19 @@ class HomeFragment : Fragment(), DateSubmitListener, DogProfileClickListener, Ho } constraintlayoutHomeFeces.setOnClickListener { - findNavController().navigate(R.id.action_homeFragment_to_excretaFragment) + // 대소변 기능 업데이트 후 삭제 + fragmentHomeBinding.run { + includeMedicalRecordDialog.run { + root.visibility = View.VISIBLE + constraintlayoutBg.setOnClickListener { + includeMedicalRecordDialog.root.visibility = View.GONE + } + buttonOk.setOnClickListener { + includeMedicalRecordDialog.root.visibility = View.GONE + } + } + } + //findNavController().navigate(R.id.action_homeFragment_to_excretaFragment) } constraintlayoutHomeNutrition.setOnClickListener { diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml index 06a807ca0..0b983390a 100644 --- a/app/src/main/res/layout/fragment_home.xml +++ b/app/src/main/res/layout/fragment_home.xml @@ -568,4 +568,11 @@ android:textColor="#6A6A6A" /> + + \ No newline at end of file