Adds link to account page when clicking on displayName (#1982)
* Adds link to account page when clicking on displayName. * Reuses the onClickListener * Fixes formatting.
This commit is contained in:
parent
814a9b8f9b
commit
e91272a4c6
|
@ -617,7 +617,13 @@ public abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder {
|
||||||
final String accountId,
|
final String accountId,
|
||||||
final String statusContent,
|
final String statusContent,
|
||||||
StatusDisplayOptions statusDisplayOptions) {
|
StatusDisplayOptions statusDisplayOptions) {
|
||||||
avatar.setOnClickListener(v -> listener.onViewAccount(accountId));
|
View.OnClickListener profileButtonClickListener = button -> {
|
||||||
|
listener.onViewAccount(accountId);
|
||||||
|
};
|
||||||
|
|
||||||
|
avatar.setOnClickListener(profileButtonClickListener);
|
||||||
|
displayName.setOnClickListener(profileButtonClickListener);
|
||||||
|
|
||||||
replyButton.setOnClickListener(v -> {
|
replyButton.setOnClickListener(v -> {
|
||||||
int position = getAdapterPosition();
|
int position = getAdapterPosition();
|
||||||
if (position != RecyclerView.NO_POSITION) {
|
if (position != RecyclerView.NO_POSITION) {
|
||||||
|
|
Loading…
Reference in New Issue