|
|
@ -515,7 +515,7 @@ public class RegistrationProgressActivity extends ActionBarActivity {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
protected Integer doInBackground(Void... params) {
|
|
|
|
protected Integer doInBackground(Void... params) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
TextSecureAccountManager accountManager = TextSecureCommunicationFactory.createManager(context);
|
|
|
|
TextSecureAccountManager accountManager = TextSecureCommunicationFactory.createManager(context, e164number, password);
|
|
|
|
int registrationId = TextSecurePreferences.getLocalRegistrationId(context);
|
|
|
|
int registrationId = TextSecurePreferences.getLocalRegistrationId(context);
|
|
|
|
|
|
|
|
|
|
|
|
accountManager.verifyAccount(code, signalingKey, true, registrationId);
|
|
|
|
accountManager.verifyAccount(code, signalingKey, true, registrationId);
|
|
|
@ -608,7 +608,7 @@ public class RegistrationProgressActivity extends ActionBarActivity {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
protected Integer doInBackground(Void... params) {
|
|
|
|
protected Integer doInBackground(Void... params) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
TextSecureAccountManager accountManager = TextSecureCommunicationFactory.createManager(context);
|
|
|
|
TextSecureAccountManager accountManager = TextSecureCommunicationFactory.createManager(context, e164number, password);
|
|
|
|
accountManager.requestVoiceVerificationCode();
|
|
|
|
accountManager.requestVoiceVerificationCode();
|
|
|
|
|
|
|
|
|
|
|
|
return SUCCESS;
|
|
|
|
return SUCCESS;
|
|
|
|