mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-17 06:23:38 +02:00
Experiment: show number of unseen messages in lists
This commit is contained in:
@@ -1043,7 +1043,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
tvCount.setVisibility(threading ? View.VISIBLE : View.GONE);
|
||||
ivThread.setVisibility(View.VISIBLE);
|
||||
|
||||
tvCount.setText(NF.format(message.visible));
|
||||
if (BuildConfig.DEBUG)
|
||||
tvCount.setText(NF.format(message.visible_unseen) + "/" + NF.format(message.visible));
|
||||
else
|
||||
tvCount.setText(NF.format(message.visible));
|
||||
|
||||
if (selected)
|
||||
ivThread.setColorFilter(colorAccent);
|
||||
@@ -5116,6 +5119,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
same = false;
|
||||
log("visible changed " + prev.visible + "/" + next.visible, next.id);
|
||||
}
|
||||
if (prev.visible_unseen != next.visible_unseen) {
|
||||
same = false;
|
||||
log("visible_unseen changed " + prev.visible_unseen + "/" + next.visible_unseen, next.id);
|
||||
}
|
||||
if (!Objects.equals(prev.totalSize, next.totalSize)) {
|
||||
same = false;
|
||||
log("totalSize changed", next.id);
|
||||
|
||||
Reference in New Issue
Block a user