Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snack bar 확장함수 추가, 캘린더 버그 수정 및 연도 표시 추가 #88

Merged
merged 2 commits into from
Dec 9, 2022

Conversation

peter-j0y
Copy link
Member

😎 작업 내용

  • snack bar 확장 함수 추가
  • 캘린더 운동 안한 날짜에 콩 찍히는 버그 수정
  • 캘린더에 연도 표시 추가

🧐 변경된 내용

  • view.makeSnackbar("문자열").setAction{}.show() 형태로 스낵바 작성이 가능합니다.
  • 액션이 필요없는 경우 생략하고 바로 .show()해주시면 됩니다.

🥳 동작 화면

  • 동작 화면 없음

🤯 이슈 번호

  • 이슈 없음

Copy link
Collaborator

@bngsh bngsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

코드 줄어든 거 보니까 속이 시원하네요..고생하셨습니다!!

@@ -36,44 +32,21 @@ class CalendarDayBinder(
R.color.gray
)
)
// day.day와 day.date.monthValue를 지정해서 특정 월, 일에 달렸다는 콩 표시 가능
container.binding.root.background = null
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

혹시 여기가 버그 잡은 부분인건가요?! 어떻게 잡으신건지 궁금하네요👀

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리사이클러뷰가 재사용되어서 생겨서 콩이 찍히면 안되는 곳에 찍혔었는데 아이템마다 운동한 날짜인지 확인해서 운동한 날짜가 아니면 background를 null처리해주는 코드를 추가했습니다..!

@@ -105,7 +105,7 @@ internal class RunningStartFragment :
if (GPSState.getGpsState(requireContext())) {
tryRunningStart()
} else {
Snackbar.make(binding.root, "gps 켜주세요", Snackbar.LENGTH_SHORT).show()
binding.root.makeSnackBar(getString(R.string.running_start_turn_on_gps)).show()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아이쿠 여기까지...감사합니다...😅

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아닙니다 ㅎㅎ

@peter-j0y peter-j0y merged commit a26b243 into develop Dec 9, 2022
@soopeach soopeach deleted the fix/my_run_calendar branch December 10, 2022 17:47
@soopeach soopeach restored the fix/my_run_calendar branch December 10, 2022 17:47
@soopeach soopeach deleted the fix/my_run_calendar branch December 10, 2022 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants