- MobileLedgerProfile profile = Data.getProfile();
- profile.getDisplayedAccounts()
- .observe(getViewLifecycleOwner(),
- (accounts) -> onAccountsChanged(profile, accounts));
+ model.getDisplayedAccounts()
+ .observe(getViewLifecycleOwner(), this::onAccountsChanged);