X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fnet%2Fktnx%2Fmobileledger%2Fui%2Faccount_summary%2FAccountSummaryFragment.java;h=eb61dcc6b0bbee9f37a4ff0188687971afe5e113;hp=dbc200eb8f6e8ff592ae02048c9682efd8326877;hb=0ce370cea3c5c980b6eeb14acf965188ae951f51;hpb=55ec17266ef8c6955fe1a29a44986497456762f1 diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryFragment.java b/app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryFragment.java index dbc200eb..eb61dcc6 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryFragment.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryFragment.java @@ -96,12 +96,10 @@ public class AccountSummaryFragment extends MobileLedgerListFragment { Data.scheduleTransactionListRetrieval(mainActivity); }); - MobileLedgerProfile profile = Data.profile.getValue(); - if (profile != null) { - profile.getDisplayedAccounts() - .observe(getViewLifecycleOwner(), - (accounts) -> onAccountsChanged(profile, accounts)); - } + MobileLedgerProfile profile = Data.getProfile(); + profile.getDisplayedAccounts() + .observe(getViewLifecycleOwner(), + (accounts) -> onAccountsChanged(profile, accounts)); } private void onAccountsChanged(MobileLedgerProfile profile, List accounts) { Logger.debug("async-acc",