1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-23 16:25:30 +00:00

Dim archive/sent folder name

This commit is contained in:
M66B 2018-11-03 07:53:12 +00:00
parent f82be4777d
commit 4e8d761881

View file

@ -316,10 +316,13 @@ public class AdapterMessage extends PagedListAdapter<TupleMessageEx, AdapterMess
if (viewType == ViewType.UNIFIED) if (viewType == ViewType.UNIFIED)
tvFolder.setText(message.accountName); tvFolder.setText(message.accountName);
else else {
tvFolder.setText(message.folderDisplay == null tvFolder.setText(message.folderDisplay == null
? Helper.localizeFolderName(context, message.folderName) ? Helper.localizeFolderName(context, message.folderName)
: message.folderDisplay); : message.folderDisplay);
tvFolder.setAlpha(EntityFolder.ARCHIVE.equals(message.folderType) ||
EntityFolder.SENT.equals(message.folderType) ? 0.5f : 1.0f);
}
tvFolder.setVisibility(viewType == ViewType.FOLDER ? View.GONE : View.VISIBLE); tvFolder.setVisibility(viewType == ViewType.FOLDER ? View.GONE : View.VISIBLE);
if (viewType == ViewType.THREAD) { if (viewType == ViewType.THREAD) {