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:
Mélanie Chauvel 2020-07-07 20:35:31 +02:00 committed by GitHub
parent dfd30ec52a
commit 4205f5493e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -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));
}
}
}

View file

@ -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) }
}
}

View file

@ -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));
}
}
}

View file

@ -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));
}
}