Suppress inbox folder name in unified inbox in compact mode

This commit is contained in:
M66B 2019-03-04 10:25:37 +00:00
parent 10cf942c4e
commit 5579237c2a
1 changed files with 5 additions and 1 deletions

View File

@ -556,7 +556,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
: message.folderDisplay); : message.folderDisplay);
tvFolder.setText((compact ? "" : message.accountName + "/") + folderName); tvFolder.setText((compact ? "" : message.accountName + "/") + folderName);
} }
tvFolder.setVisibility(viewType == ViewType.FOLDER && compact ? View.GONE : View.VISIBLE); tvFolder.setVisibility(compact &&
(!threading ||
viewType == ViewType.FOLDER ||
(viewType == ViewType.UNIFIED && EntityFolder.INBOX.equals(message.folderType)))
? View.GONE : View.VISIBLE);
if (viewType == ViewType.THREAD || !threading) { if (viewType == ViewType.THREAD || !threading) {
tvCount.setVisibility(View.GONE); tvCount.setVisibility(View.GONE);