mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-26 23:50:58 +01:00
Show unread count per account
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user