Show single account name instead of unified inbox

This commit is contained in:
M66B 2021-06-30 20:35:43 +02:00
parent 539874aded
commit a04665e7a6
1 changed files with 5 additions and 3 deletions

View File

@ -4767,9 +4767,11 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
// Get name
String name;
if (viewType == AdapterMessage.ViewType.UNIFIED)
if (type == null)
name = getString(R.string.title_folder_unified);
else
if (type == null) {
name = (folders.size() == 1 ? folders.get(0).accountName : null);
if (name == null)
name = getString(R.string.title_folder_unified);
} else
name = EntityFolder.localizeType(getContext(), type);
else {
name = (folders.size() > 0 ? folders.get(0).getDisplayName(getContext()) : "");