use of ai.saiy.android.user.ISaiyAccount in project Saiy-PS by brandall76.
the class FragmentSuperuserHelper method proceedEnrollment.
/**
* Proceed with the enrollment process knowing that any existing association to the
* given account has been deleted consensually along with any remote profile.
* <p>
* Once the account set up is complete a callback will be provided from the
* {@link ISaiyAccount} interface. Any issue in the account creation will be
* handled by {@link #monitorAccountCreation(String)}
*
* @param accountName the account name
*/
private void proceedEnrollment(@NonNull final String accountName) {
if (DEBUG) {
MyLog.i(CLS_NAME, "proceedEnrollment");
}
final SaiyAccount saiyAccount = new SaiyAccount(accountName, true);
saiyAccount.setAccountId(getApplicationContext(), this);
saiyAccount.setPseudonym(SPH.getUserName(getApplicationContext()), true);
getParentActivity().showProgress(true);
monitorAccountCreation(accountName);
}
Aggregations