Make account views clickable instead of avatar only (#1855)
Affects: - New follower request and New follower notifications - Accounts in Blocked users and Muted users pages
This commit is contained in:
parent
dfd30ec52a
commit
4205f5493e
4 changed files with 4 additions and 4 deletions
|
@ -103,7 +103,7 @@ public class BlocksAdapter extends AccountAdapter {
|
|||
listener.onBlock(false, id, position);
|
||||
}
|
||||
});
|
||||
avatar.setOnClickListener(v -> listener.onViewAccount(id));
|
||||
itemView.setOnClickListener(v -> listener.onViewAccount(id));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,6 +44,6 @@ internal class FollowRequestViewHolder(itemView: View, private val showHeader: B
|
|||
listener.onRespondToFollowRequest(false, id, position)
|
||||
}
|
||||
}
|
||||
itemView.avatar.setOnClickListener { listener.onViewAccount(id) }
|
||||
itemView.setOnClickListener { listener.onViewAccount(id) }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -83,7 +83,7 @@ public class MutesAdapter extends AccountAdapter {
|
|||
|
||||
void setupActionListener(final AccountActionListener listener) {
|
||||
unmute.setOnClickListener(v -> listener.onMute(false, id, getAdapterPosition()));
|
||||
avatar.setOnClickListener(v -> listener.onViewAccount(id));
|
||||
itemView.setOnClickListener(v -> listener.onViewAccount(id));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -350,7 +350,7 @@ public class NotificationsAdapter extends RecyclerView.Adapter {
|
|||
}
|
||||
|
||||
void setupButtons(final NotificationActionListener listener, final String accountId) {
|
||||
avatar.setOnClickListener(v -> listener.onViewAccount(accountId));
|
||||
itemView.setOnClickListener(v -> listener.onViewAccount(accountId));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue