Show selected message in multi column mode

This commit is contained in:
M66B 2020-05-17 18:19:22 +02:00
parent 945a868154
commit b35508a2d3
1 changed files with 7 additions and 3 deletions

View File

@ -1017,13 +1017,17 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
tvFolder.setVisibility(compact && viewType != ViewType.THREAD ? View.GONE : View.VISIBLE);
if (viewType == ViewType.THREAD || !threading) {
boolean selected = properties.getValue("selected", message.id);
if (viewType == ViewType.THREAD || (!threading && !selected)) {
tvCount.setVisibility(View.GONE);
ivThread.setVisibility(View.GONE);
} else {
tvCount.setText(NF.format(message.visible));
tvCount.setVisibility(threading ? View.VISIBLE : View.GONE);
ivThread.setVisibility(View.VISIBLE);
if (properties.getValue("selected", message.id))
tvCount.setText(NF.format(message.visible));
if (selected)
ivThread.setColorFilter(colorAccent);
else
ivThread.clearColorFilter();