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