Show unread count per account

This commit is contained in:
M66B
2018-12-16 17:39:15 +01:00
parent c402a97016
commit 3b2ee071f7
10 changed files with 77 additions and 23 deletions

View File

@@ -354,13 +354,13 @@ public class FragmentSetup extends FragmentEx {
final DB db = DB.getInstance(getContext());
db.account().liveAccounts(true).observe(getViewLifecycleOwner(), new Observer<List<EntityAccount>>() {
db.account().liveAccounts(true).observe(getViewLifecycleOwner(), new Observer<List<TupleAccountEx>>() {
private boolean done = false;
private LiveData<EntityFolder> livePrimaryDrafts = null;
private LiveData<EntityFolder> livePrimaryArchive = null;
@Override
public void onChanged(@Nullable List<EntityAccount> accounts) {
public void onChanged(@Nullable List<TupleAccountEx> accounts) {
done = (accounts != null && accounts.size() > 0);
btnIdentity.setEnabled(done);