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

Refactor/android/double click: 다중 클릭 방지 개선 및 UI, Notification 개선 #230

Merged
merged 10 commits into from
Dec 13, 2023

Conversation

p-chanmin
Copy link
Collaborator

개요

  • 다중 클릭 방지 개선 및 UI, Notification 개선

설명

  • 일정 초대 Notification 개선
    • 여러 개의 일정 초대가 동시에 왔을 때 수락 거절을 모두 처리할 수 있습니다.
    • Notification의 수락과 거절 Action을 분리하여 처리하였습니다.
  • 다중 클릭 방지 처리
    • setOnMenuItemClickListener도 다중 클릭 방지할 수 있도록 ClickEventUtil에 추가했습니다.
    • 일정 추가 Activity 다중 클릭 방지
    • 팔로우, 일정 초대 Fragment 다중 클릭 방지
    • 알림 목록 Fragment 다중 클릭 방지

@p-chanmin p-chanmin self-assigned this Dec 12, 2023
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): FollowViewHolder {
return FollowViewHolder.from(parent)
return FollowViewHolder.from(parent, actionType, userClickListener, eventId)
Copy link
Collaborator

Choose a reason for hiding this comment

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

뷰홀더 생성 시 인자 넣어주는 것 좋습니다!!

@@ -51,14 +53,11 @@ class AddEventActivity : BaseActivity<ActivityAddEventBinding>(R.layout.activity

private fun setTopAppBar() {
with(binding.topAppBar) {
setOnMenuItemClickListener { menuItem ->
when (menuItem.itemId) {
setMenuClickEvent(lifecycleScope) { menuItemId ->
Copy link
Collaborator

@agfalcon agfalcon Dec 13, 2023

Choose a reason for hiding this comment

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

menu click에 대한 더블 클릭을 구현하셨네요!!! 대단합니다..

Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

emitExceptionEvent(it, R.string.notification_delete_fail)
}.collectLatest {
fetchFollowNotificationList()
if (_followNotificationList.value.isNotEmpty()) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

예외 처리 굳굳 좋습니다!!

Comment on lines +22 to +29
fun MaterialToolbar.menuClicks(): Flow<Int> = callbackFlow {
setOnMenuItemClickListener { menuItem ->
this.trySend(menuItem.itemId)
true
}
awaitClose { setOnMenuItemClickListener(null) }
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

진짜 고수시네요... 저도 써먹겠습니다 ㅎㅎ

agfalcon
agfalcon previously approved these changes Dec 13, 2023
Copy link
Collaborator

@agfalcon agfalcon left a comment

Choose a reason for hiding this comment

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

오프라인 후에도 작업을 하시다니 대단하십니다!! 너무 고생하셨어요~

LeeHaiLim
LeeHaiLim previously approved these changes Dec 13, 2023
Copy link
Collaborator

@LeeHaiLim LeeHaiLim left a comment

Choose a reason for hiding this comment

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

좋습니다!! 피곤하셨을 텐데 수고 많으셨어요..

@@ -51,14 +53,11 @@ class AddEventActivity : BaseActivity<ActivityAddEventBinding>(R.layout.activity

private fun setTopAppBar() {
with(binding.topAppBar) {
setOnMenuItemClickListener { menuItem ->
when (menuItem.itemId) {
setMenuClickEvent(lifecycleScope) { menuItemId ->
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

@LeeHaiLim LeeHaiLim dismissed stale reviews from agfalcon and themself via c355d69 December 13, 2023 03:09
@agfalcon agfalcon merged commit e7957c3 into boostcampwm2023:dev Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants