always show follow requests in main menu (#1809)
* always show follow requests in main menu * update recyclerview to v1.2.0 * fix bug that shows follow requests info to wrong users
This commit is contained in:
parent
497d0043bf
commit
dee6a3a160
28 changed files with 143 additions and 76 deletions
|
|
@ -51,13 +51,13 @@ class FollowRequestViewHolder(
|
|||
|
||||
fun setupActionListener(listener: AccountActionListener, accountId: String) {
|
||||
binding.acceptButton.setOnClickListener {
|
||||
val position = adapterPosition
|
||||
val position = bindingAdapterPosition
|
||||
if (position != RecyclerView.NO_POSITION) {
|
||||
listener.onRespondToFollowRequest(true, accountId, position)
|
||||
}
|
||||
}
|
||||
binding.rejectButton.setOnClickListener {
|
||||
val position = adapterPosition
|
||||
val position = bindingAdapterPosition
|
||||
if (position != RecyclerView.NO_POSITION) {
|
||||
listener.onRespondToFollowRequest(false, accountId, position)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue