Untitled
unknown
java
2 years ago
4.8 kB
20
Indexable
@Override // org.telegram.ui.Components.SlideView
/* renamed from: onNextPressed */
public void lambda$onNextPressed$14(String str) {
TLRPC$TL_auth_signIn tLRPC$TL_auth_signIn;
if (this.nextPressed) {
return;
}
AndroidUtilities.cancelRunOnUIThread(this.resendCodeTimeout);
CodeFieldContainer codeFieldContainer = this.codeFieldContainer;
codeFieldContainer.isFocusSuppressed = true;
CodeNumberField[] codeNumberFieldArr = codeFieldContainer.codeField;
if (codeNumberFieldArr != null) {
for (CodeNumberField codeNumberField : codeNumberFieldArr) {
codeNumberField.animateFocusedProgress(0.0f);
}
}
final String code = this.codeFieldContainer.getCode();
if (code.length() == 0 && this.googleAccount == null) {
onPasscodeError(false);
return;
}
this.nextPressed = true;
LoginActivity.this.needShowProgress(0);
if (LoginActivity.this.activityMode == 3) {
TLRPC$TL_account_verifyEmail tLRPC$TL_account_verifyEmail = new TLRPC$TL_account_verifyEmail();
tLRPC$TL_account_verifyEmail.purpose = new TLRPC$TL_emailVerifyPurposeLoginChange();
TLRPC$TL_emailVerificationCode tLRPC$TL_emailVerificationCode = new TLRPC$TL_emailVerificationCode();
tLRPC$TL_emailVerificationCode.code = code;
tLRPC$TL_account_verifyEmail.verification = tLRPC$TL_emailVerificationCode;
tLRPC$TL_auth_signIn = tLRPC$TL_account_verifyEmail;
} else if (this.isFromSetup) {
TLRPC$TL_account_verifyEmail tLRPC$TL_account_verifyEmail2 = new TLRPC$TL_account_verifyEmail();
TLRPC$TL_emailVerifyPurposeLoginSetup tLRPC$TL_emailVerifyPurposeLoginSetup = new TLRPC$TL_emailVerifyPurposeLoginSetup();
tLRPC$TL_emailVerifyPurposeLoginSetup.phone_number = this.requestPhone;
tLRPC$TL_emailVerifyPurposeLoginSetup.phone_code_hash = this.phoneHash;
tLRPC$TL_account_verifyEmail2.purpose = tLRPC$TL_emailVerifyPurposeLoginSetup;
TLRPC$TL_emailVerificationCode tLRPC$TL_emailVerificationCode2 = new TLRPC$TL_emailVerificationCode();
tLRPC$TL_emailVerificationCode2.code = code;
tLRPC$TL_account_verifyEmail2.verification = tLRPC$TL_emailVerificationCode2;
tLRPC$TL_auth_signIn = tLRPC$TL_account_verifyEmail2;
} else {
TLRPC$TL_auth_signIn tLRPC$TL_auth_signIn2 = new TLRPC$TL_auth_signIn();
tLRPC$TL_auth_signIn2.phone_number = this.requestPhone;
tLRPC$TL_auth_signIn2.phone_code_hash = this.phoneHash;
if (this.googleAccount != null) {
TLRPC$TL_emailVerificationGoogle tLRPC$TL_emailVerificationGoogle = new TLRPC$TL_emailVerificationGoogle();
tLRPC$TL_emailVerificationGoogle.token = this.googleAccount.getIdToken();
tLRPC$TL_auth_signIn2.email_verification = tLRPC$TL_emailVerificationGoogle;
} else {
TLRPC$TL_emailVerificationCode tLRPC$TL_emailVerificationCode3 = new TLRPC$TL_emailVerificationCode();
tLRPC$TL_emailVerificationCode3.code = code;
tLRPC$TL_auth_signIn2.email_verification = tLRPC$TL_emailVerificationCode3;
}
tLRPC$TL_auth_signIn2.flags |= 2;
tLRPC$TL_auth_signIn = tLRPC$TL_auth_signIn2;
}
CodeFieldContainer codeFieldContainer2 = this.codeFieldContainer;
codeFieldContainer2.isFocusSuppressed = true;
CodeNumberField[] codeNumberFieldArr2 = codeFieldContainer2.codeField;
if (codeNumberFieldArr2 != null) {
for (CodeNumberField codeNumberField2 : codeNumberFieldArr2) {
codeNumberField2.animateFocusedProgress(0.0f);
}
}
ConnectionsManager.getInstance(((BaseFragment) LoginActivity.this).currentAccount).sendRequest(tLRPC$TL_auth_signIn, new RequestDelegate() { // from class: org.telegram.ui.LoginActivity$LoginActivityEmailCodeView$$ExternalSyntheticLambda30
{
LoginActivity.LoginActivityEmailCodeView.this = this;
}
@Override // org.telegram.tgnet.RequestDelegate
public final void run(TLObject tLObject, TLRPC$TL_error tLRPC$TL_error) {
LoginActivity.LoginActivityEmailCodeView.this.lambda$onNextPressed$23(code, tLObject, tLRPC$TL_error);
}
}, 10);
}
Editor is loading...