use of cx.ring.navigation.RingNavigationViewModel in project ring-client-android by savoirfairelinux.
the class MainPresenter method reloadAccountInfos.
public void reloadAccountInfos() {
if (mAccountService == null) {
Log.e(TAG, "reloadAccountInfos: No account service available");
return;
}
String displayableAddress = null;
List<Account> accounts = mAccountService.getAccounts();
for (Account account : accounts) {
displayableAddress = account.getDisplayUri();
}
RingNavigationViewModel viewModel = new RingNavigationViewModel(mAccountService.getCurrentAccount(), accounts);
getView().displayAccountInfos(displayableAddress, viewModel);
}
Aggregations