Messages in conversations should always be expandable

This commit is contained in:
M66B 2019-06-18 19:25:50 +02:00
parent e56673332e
commit 119df372d6
1 changed files with 2 additions and 2 deletions

View File

@ -429,7 +429,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
} }
private void wire() { private void wire() {
final View touch = (viewType == ViewType.THREAD && threading ? ivExpander : vwColor); final View touch = (viewType == ViewType.THREAD ? ivExpander : vwColor);
touch.setOnClickListener(this); touch.setOnClickListener(this);
view.post(new Runnable() { view.post(new Runnable() {
@Override @Override
@ -614,7 +614,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
// Expander // Expander
boolean expanded = (viewType == ViewType.THREAD && properties.getValue("expanded", message.id)); boolean expanded = (viewType == ViewType.THREAD && properties.getValue("expanded", message.id));
ivExpander.setImageLevel(expanded ? 0 /* less */ : 1 /* more */); ivExpander.setImageLevel(expanded ? 0 /* less */ : 1 /* more */);
if (viewType == ViewType.THREAD && threading) if (viewType == ViewType.THREAD)
ivExpander.setVisibility(EntityFolder.DRAFTS.equals(message.folderType) ? View.INVISIBLE : View.VISIBLE); ivExpander.setVisibility(EntityFolder.DRAFTS.equals(message.folderType) ? View.INVISIBLE : View.VISIBLE);
else else
ivExpander.setVisibility(View.GONE); ivExpander.setVisibility(View.GONE);