Fixed displaying folders of all accounts

This commit is contained in:
M66B
2018-08-07 20:30:45 +00:00
parent facfd4399e
commit 0c1ea6c623
40 changed files with 19 additions and 46 deletions

View File

@@ -266,9 +266,9 @@ public class FragmentMessage extends FragmentEx {
bottom_navigation.setTag(message.folderType);
db.folder().liveFolders(message.account).removeObservers(FragmentMessage.this);
db.folder().liveFolders(message.account).observe(FragmentMessage.this, new Observer<List<EntityFolder>>() {
db.folder().liveFolders(message.account).observe(FragmentMessage.this, new Observer<List<TupleFolderEx>>() {
@Override
public void onChanged(@Nullable final List<EntityFolder> folders) {
public void onChanged(@Nullable final List<TupleFolderEx> folders) {
boolean hasTrash = false;
boolean hasJunk = false;
boolean hasArchive = false;