mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 10:17:18 +00:00
Show selected message in multi column mode
This commit is contained in:
parent
945a868154
commit
b35508a2d3
1 changed files with 7 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue