Skip to content

Commit

Permalink
Merge pull request #171 from Semoban/feature/fix_medical_record_menu
Browse files Browse the repository at this point in the history
fix: Bottom Navigation 진료기록 메뉴 클릭 시 다이얼로그 표시
  • Loading branch information
iiolo authored Mar 26, 2024
2 parents 89a6fa4 + 6f43fe7 commit acf5d33
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/src/main/java/com/project/meongcare/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ class MainActivity : AppCompatActivity() {
fragmentContainerView.findNavController().navigate(R.id.homeFragment)
}
else -> {
fragmentContainerView.findNavController().navigate(R.id.medicalRecordFragment)
showUpdateDialog()
// fragmentContainerView.findNavController().navigate(R.id.medicalRecordFragment)
}
}

Expand All @@ -81,7 +82,8 @@ class MainActivity : AppCompatActivity() {
if (menuItem.itemId == R.id.menuMainBottomNavHome) {
fragmentContainerView.findNavController().navigate(R.id.homeFragment)
} else {
fragmentContainerView.findNavController().navigate(R.id.medicalRecordFragment)
showUpdateDialog()
// fragmentContainerView.findNavController().navigate(R.id.medicalRecordFragment)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ import com.project.meongcare.onboarding.model.data.local.DateSubmitListener
import com.project.meongcare.snackbar.view.CustomSnackBar
import com.project.meongcare.weight.model.entities.WeightPostRequest
import dagger.hilt.android.AndroidEntryPoint
import java.time.LocalDate
import java.time.ZoneId
import java.util.Date

@AndroidEntryPoint
Expand Down Expand Up @@ -60,6 +62,9 @@ class HomeFragment : Fragment(), DateSubmitListener, DogProfileClickListener, Ho

getAccessToken()

val currentDate = LocalDate.now()
setSelectedDate(Date.from(currentDate.atStartOfDay(ZoneId.systemDefault()).toInstant()))

initCalendarImageView()
initAlarmImageView()
initProfileImageView()
Expand Down

0 comments on commit acf5d33

Please sign in to comment.