22
33import android .app .Activity ;
44
5- import com .google .android .gms .tasks .OnSuccessListener ;
6- import com .google .android .recaptcha .Recaptcha ;
7- import com .google .android .recaptcha .RecaptchaAction ;
8- import com .google .android .recaptcha .RecaptchaTasksClient ;
5+ // import com.google.android.gms.tasks.OnSuccessListener;
6+ // import com.google.android.recaptcha.Recaptcha;
7+ // import com.google.android.recaptcha.RecaptchaAction;
8+ // import com.google.android.recaptcha.RecaptchaTasksClient;
99
1010import org .telegram .tgnet .ConnectionsManager ;
1111import org .telegram .ui .LaunchActivity ;
@@ -70,7 +70,7 @@ public static void request(int currentAccount, int requestToken, String action,
7070 return ;
7171 }
7272
73- Recaptcha .getTasksClient (activity .getApplication (), key_id )
73+ /* Recaptcha.getTasksClient(activity.getApplication(), key_id)
7474 .addOnSuccessListener(client -> {
7575 client.executeTask(getAction(action))
7676 .addOnSuccessListener(token -> {
@@ -89,21 +89,21 @@ public static void request(int currentAccount, int requestToken, String action,
8989 .addOnFailureListener(e -> {
9090 FileLog.e("CaptchaController: getTasksClient failure", e);
9191 finalRequest.done("RECAPTCHA_FAILED_GETCLIENT_EXCEPTION_" + formatException(e));
92- });
92+ });*/
9393 }
9494
95- private static RecaptchaAction getAction (String action ) {
96- switch (action ) {
97- case "login" :
98- case "LOGIN" :
99- return RecaptchaAction .LOGIN ;
100- case "signup" :
101- case "SIGNUP" :
102- return RecaptchaAction .SIGNUP ;
103- default :
104- return RecaptchaAction .custom (action );
105- }
106- }
95+ // private static RecaptchaAction getAction(String action) {
96+ // switch (action) {
97+ // case "login":
98+ // case "LOGIN":
99+ // return RecaptchaAction.LOGIN;
100+ // case "signup":
101+ // case "SIGNUP":
102+ // return RecaptchaAction.SIGNUP;
103+ // default:
104+ // return RecaptchaAction.custom(action);
105+ // }
106+ // }
107107
108108 private static String formatException (Exception e ) {
109109 if (e == null ) return "NULL" ;
0 commit comments