Fix conversation list multiselect animation.
This commit is contained in:
parent
5ba04936b1
commit
1fb0573fec
2 changed files with 4 additions and 1 deletions
|
@ -231,7 +231,6 @@ class ConversationListAdapter extends ListAdapter<Conversation, RecyclerView.Vie
|
||||||
void initializeBatchMode(boolean toggle) {
|
void initializeBatchMode(boolean toggle) {
|
||||||
this.batchMode = toggle;
|
this.batchMode = toggle;
|
||||||
batchSet.clear();
|
batchSet.clear();
|
||||||
notifyDataSetChanged();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static final class ConversationViewHolder extends RecyclerView.ViewHolder {
|
static final class ConversationViewHolder extends RecyclerView.ViewHolder {
|
||||||
|
|
|
@ -295,6 +295,10 @@ public final class ConversationListItem extends ConstraintLayout
|
||||||
boolean selected = batchMode && selectedThreads.contains(thread.getThreadId());
|
boolean selected = batchMode && selectedThreads.contains(thread.getThreadId());
|
||||||
setSelected(selected);
|
setSelected(selected);
|
||||||
|
|
||||||
|
if (recipient != null) {
|
||||||
|
contactPhotoImage.setAvatar(glideRequests, recipient.get(), !batchMode);
|
||||||
|
}
|
||||||
|
|
||||||
if (batchMode && selected) {
|
if (batchMode && selected) {
|
||||||
checkContainer.setVisibility(VISIBLE);
|
checkContainer.setVisibility(VISIBLE);
|
||||||
uncheckedView.setVisibility(GONE);
|
uncheckedView.setVisibility(GONE);
|
||||||
|
|
Loading…
Add table
Reference in a new issue