Search in sources :

Example 1 with RingNavigationViewModel

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);
}
Also used : Account(cx.ring.model.Account) RingNavigationViewModel(cx.ring.navigation.RingNavigationViewModel)

Aggregations

Account (cx.ring.model.Account)1 RingNavigationViewModel (cx.ring.navigation.RingNavigationViewModel)1