-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refactor/android/double click: 다중 클릭 방지 개선 및 UI, Notification 개선 #230
Conversation
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): FollowViewHolder { | ||
return FollowViewHolder.from(parent) | ||
return FollowViewHolder.from(parent, actionType, userClickListener, eventId) |
There was a problem hiding this 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 -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
menu click에 대한 더블 클릭을 구현하셨네요!!! 대단합니다..
There was a problem hiding this comment.
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()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
예외 처리 굳굳 좋습니다!!
fun MaterialToolbar.menuClicks(): Flow<Int> = callbackFlow { | ||
setOnMenuItemClickListener { menuItem -> | ||
this.trySend(menuItem.itemId) | ||
true | ||
} | ||
awaitClose { setOnMenuItemClickListener(null) } | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
진짜 고수시네요... 저도 써먹겠습니다 ㅎㅎ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오프라인 후에도 작업을 하시다니 대단하십니다!! 너무 고생하셨어요~
There was a problem hiding this 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 -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
개요
설명
ClickEventUtil
에 추가했습니다.