Show number of unread messages in account

This commit is contained in:
M66B
2019-03-19 09:12:37 +00:00
parent 50bbbbe2f8
commit 883ed09fbd
4 changed files with 42 additions and 25 deletions

View File

@@ -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<>();