use of cx.ring.model.AccountCredentials in project ring-client-android by savoirfairelinux.
the class SecurityAccountFragment method addAllCredentials.
@Override
public void addAllCredentials(ArrayList<AccountCredentials> credentials) {
int i = 0;
for (AccountCredentials cred : credentials) {
CredentialsPreference toAdd = new CredentialsPreference(getPreferenceManager().getContext());
toAdd.setKey("credential" + i);
toAdd.setPersistent(false);
toAdd.setCreds(cred);
toAdd.setIcon(null);
credentialsCategory.addPreference(toAdd);
i++;
toAdd.setOnPreferenceChangeListener(editCredentialListener);
}
}
Aggregations