mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-04 11:54:10 +01:00
Show number of unread messages in account
This commit is contained in:
@@ -112,10 +112,10 @@ public class FragmentAccounts extends FragmentBase {
|
||||
super.onActivityCreated(savedInstanceState);
|
||||
|
||||
// Observe accounts
|
||||
DB.getInstance(getContext()).account().liveAccounts(settings)
|
||||
.observe(getViewLifecycleOwner(), new Observer<List<EntityAccount>>() {
|
||||
DB.getInstance(getContext()).account().liveAccountsEx(settings)
|
||||
.observe(getViewLifecycleOwner(), new Observer<List<TupleAccountEx>>() {
|
||||
@Override
|
||||
public void onChanged(@Nullable List<EntityAccount> accounts) {
|
||||
public void onChanged(@Nullable List<TupleAccountEx> accounts) {
|
||||
if (accounts == null)
|
||||
accounts = new ArrayList<>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user