Fix account selection and folder list not beeing updated

This commit is contained in:
morckx 2018-11-24 23:50:05 +01:00
parent a5196ed2f6
commit f11d0e47ec

View file

@ -134,8 +134,8 @@ public class K9Drawer {
return false;
} else {
Account account = (Account) ((ProfileDrawerItem) profile).getTag();
updateUserAccountsAndFolders(account);
Accounts.openRealAccount(account, parent);
updateUserAccountsAndFolders(account);
return false;
}
}
@ -194,6 +194,7 @@ public class K9Drawer {
if (account == null) {
selectUnifiedInbox();
} else {
unifiedInboxSelected = false;
accountHeader.setActiveProfile((account.getAccountNumber()+1) << DRAWER_ACCOUNT_SHIFT);
ViewModelProvider viewModelProvider = ViewModelProviders.of(parent, new MessageListViewModelFactory());
MessageListViewModel viewModel = viewModelProvider.get(MessageListViewModel.class);
@ -250,8 +251,6 @@ public class K9Drawer {
if (openedFolderDrawerId != -1) {
drawer.setSelection(openedFolderDrawerId, false);
} else if (unifiedInboxSelected) {
selectUnifiedInbox();
}
}