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

[feature/register-photo-ui] 사진 등록 UI 구성 #82

Merged
merged 34 commits into from
Jul 7, 2023

Conversation

l2hyunwoo
Copy link
Member

이슈 코드

@l2hyunwoo l2hyunwoo added 🐯 이현우 이현우가 했다 ✨ Feature 기능 개발 labels Jul 6, 2023
@l2hyunwoo l2hyunwoo self-assigned this Jul 6, 2023
@l2hyunwoo l2hyunwoo requested a review from a team as a code owner July 6, 2023 05:38
Copy link
Contributor

@librarywon librarywon left a comment

Choose a reason for hiding this comment

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

LGTM!!

app/build.gradle.kts Show resolved Hide resolved
@l2hyunwoo l2hyunwoo force-pushed the feature/register-photo-ui branch 2 times, most recently from 4b8fad0 to cefa77c Compare July 6, 2023 15:15
Copy link
Member

@kez-lab kez-lab left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!!!

app/build.gradle.kts Show resolved Hide resolved
Comment on lines +6 to +12
class HomeViewModel : ViewModel() {
var currentAlbum: AlbumItem? = null
private set

fun onUpdateAlbum(album: AlbumItem?) {
currentAlbum = album
}
Copy link
Member

Choose a reason for hiding this comment

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

currentAlbum을 observalbe한 변수가 아닌 nullable한 변수로 지정한 이유가 있을까요?!

Copy link
Member Author

Choose a reason for hiding this comment

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

얘를 변경감지해서 사용할 수 있는 부분이 딱히 없어서 collect 하는 걸 제외했습니다.

Comment on lines +51 to +53
binding.bottomNavFav.setOnClickListener {
imagePicker.launch(PickVisualMediaRequest(ActivityResultContracts.PickVisualMedia.ImageOnly))
}
Copy link
Member

Choose a reason for hiding this comment

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

jpg, png만 따로 처리하는 부분이 ImageOnly 상수인가요?

Copy link
Member Author

Choose a reason for hiding this comment

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

넵넵

Comment on lines +80 to +99
val currentCreatedAt = viewModel.createdAt.value
val picker = MaterialDatePicker.Builder
.datePicker()
.setTheme(R.style.ThemeOverlay_Pophory_MaterialCalendar)
.setInputMode(MaterialDatePicker.INPUT_MODE_CALENDAR)
.setCalendarConstraints(
CalendarConstraints.Builder()
.setValidator(
DateValidatorPointBackward.now()
)
.setEnd(Instant.systemNow().toEpochMilliseconds()).build()
)
.setSelection(
currentCreatedAt + TimeZone.getDefault().getOffset(currentCreatedAt)
)
.build()
picker.show(supportFragmentManager, "datePicker")
picker.addOnPositiveButtonClickListener(viewModel::onUpdateCreateAt)
}

Copy link
Member

Choose a reason for hiding this comment

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

👍

@l2hyunwoo l2hyunwoo merged commit f510097 into develop Jul 7, 2023
1 check passed
@l2hyunwoo l2hyunwoo deleted the feature/register-photo-ui branch July 7, 2023 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature 기능 개발 🐯 이현우 이현우가 했다
Projects
None yet
Development

Successfully merging this pull request may close these issues.

사진 등록 화면 구성
3 participants