|
|
|
@ -3545,12 +3545,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
.putExtra("id", message.id));
|
|
|
|
|
else {
|
|
|
|
|
boolean expanded = !properties.getValue("expanded", message.id);
|
|
|
|
|
|
|
|
|
|
properties.setExpanded(message, expanded);
|
|
|
|
|
|
|
|
|
|
// Needed to scroll to item after collapsing other items
|
|
|
|
|
if (expanded)
|
|
|
|
|
properties.scrollTo(getAdapterPosition(), 0);
|
|
|
|
|
properties.setExpanded(message, expanded, expanded);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -4298,7 +4293,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
|
|
|
|
|
message.ui_seen = args.getBoolean("seen");
|
|
|
|
|
message.unseen = (message.ui_seen ? 0 : message.count);
|
|
|
|
|
properties.setExpanded(message, false);
|
|
|
|
|
properties.setExpanded(message, false, false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -5803,8 +5798,14 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
boolean scroll = false;
|
|
|
|
|
if (viewType == ViewType.THREAD) {
|
|
|
|
|
scroll = properties.getValue("scroll", message.id);
|
|
|
|
|
properties.setValue("scroll", message.id, false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
holder.unwire();
|
|
|
|
|
holder.bindTo(message, false);
|
|
|
|
|
holder.bindTo(message, scroll);
|
|
|
|
|
holder.wire();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -5886,7 +5887,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
|
|
|
|
|
boolean getValue(String name, long id);
|
|
|
|
|
|
|
|
|
|
void setExpanded(TupleMessageEx message, boolean expanded);
|
|
|
|
|
void setExpanded(TupleMessageEx message, boolean expanded, boolean scroll);
|
|
|
|
|
|
|
|
|
|
void setSize(long id, Float size);
|
|
|
|
|
|
|
|
|
|