秦华影视 v1.0.0版本的 MD5 值为:90520322e40df4849cf4989ab6339524
以下内容为反编译后的 GT3GeetestButton.java 源代码,内容仅作参考
package com.geetest.sdk.views;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.Intent;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.net.Uri;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.geetest.sdk.R;
import java.util.ArrayList;
import java.util.List;
import p.a.y.e.a.s.e.net.b30;
import p.a.y.e.a.s.e.net.c40;
import p.a.y.e.a.s.e.net.c50;
import p.a.y.e.a.s.e.net.h40;
import p.a.y.e.a.s.e.net.r40;
import p.a.y.e.a.s.e.net.y30;
import p.a.y.e.a.s.e.net.z20;
public class GT3GeetestButton extends LinearLayout {
private boolean lite_abstract;
private TextView lite_boolean;
private boolean lite_continue;
private ImageView lite_default;
private Context lite_extends;
private z20 lite_finally;
private boolean lite_implements;
private boolean lite_instanceof;
private boolean lite_interface;
private boolean lite_package;
private b lite_private;
private boolean lite_protected;
private GT3GeetestView lite_static;
private final List<String> lite_strictfp;
private TextView lite_switch;
private TextView lite_throws;
private boolean lite_transient;
private boolean lite_volatile;
public class a implements View.OnClickListener {
public final Context lite_static;
public a(GT3GeetestButton gT3GeetestButton, Context context) {
this.lite_static = context;
}
@Override
public void onClick(View view) {
try {
this.lite_static.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("http://www.geetest.com/first_page")));
} catch (Exception e) {
e.printStackTrace();
}
}
}
public GT3GeetestButton(Context context) {
super(context);
this.lite_package = true;
this.lite_abstract = true;
this.lite_continue = false;
this.lite_strictfp = new ArrayList();
this.lite_volatile = false;
this.lite_interface = false;
this.lite_transient = false;
this.lite_implements = true;
this.lite_instanceof = true;
lite_catch(context);
}
private void lite_catch(Context context) {
this.lite_extends = context;
if (TextUtils.isEmpty(h40.lite_do())) {
h40.lite_if(context);
}
View inflate = ((LayoutInflater) context.getApplicationContext().getSystemService("layout_inflater")).inflate(R.layout.gt3_ll_geetest_view, this);
this.lite_static = (GT3GeetestView) inflate.findViewById(R.id.geetest_view);
this.lite_throws = (TextView) inflate.findViewById(R.id.tv_test_geetest_cof);
this.lite_boolean = (TextView) inflate.findViewById(R.id.tv_test_geetest_cord);
this.lite_switch = (TextView) inflate.findViewById(R.id.tv_test_geetest);
ImageView imageView = (ImageView) inflate.findViewById(R.id.iv_geetest_logo);
this.lite_default = imageView;
imageView.setOnClickListener(new a(this, context));
this.lite_static.lite_if();
setBackgroundResource(R.drawable.gt3_lin_bg_shape);
b bVar = new b();
this.lite_private = bVar;
bVar.lite_int();
}
private String lite_class() {
ArrayList arrayList = new ArrayList();
arrayList.clear();
arrayList.add(0);
arrayList.add(0);
arrayList.add(0);
arrayList.add(0);
return arrayList.toString();
}
public static Activity lite_const(Context context) {
if (context == null) {
return null;
}
if (context instanceof Activity) {
return (Activity) context;
}
if (context instanceof ContextWrapper) {
return lite_const(((ContextWrapper) context).getBaseContext());
}
return null;
}
@Override
@SuppressLint({"DrawAllocation"})
public void onDraw(Canvas canvas) {
int lite_do = r40.lite_do(this.lite_extends, new c40().lite_if());
postInvalidate();
super.onDraw(canvas);
if (!c50.lite_do(this.lite_extends)) {
this.lite_implements = false;
this.lite_static.lite_new();
setBackgroundResource(R.drawable.gt3_lin_file_shape);
if (this.lite_protected) {
this.lite_default.setImageResource(R.mipmap.gt3logogray);
}
this.lite_switch.setText(h40.lite_new());
this.lite_boolean.setText("201");
this.lite_boolean.setVisibility(0);
this.lite_throws.setVisibility(0);
this.lite_throws.setText(h40.lite_goto());
this.lite_switch.setTextColor(-13092808);
this.lite_switch.setAlpha(1.0f);
} else {
this.lite_implements = true;
}
if (this.lite_continue) {
Path path = new Path();
Paint paint = new Paint(1536);
paint.setAntiAlias(true);
paint.setColor(new y30().lite_if());
paint.setStyle(Paint.Style.FILL);
paint.setStrokeWidth(1.0f);
path.moveTo(getWidth() - lite_do, 0.0f);
path.lineTo(getWidth(), 0.0f);
path.lineTo(getWidth(), lite_do);
path.close();
canvas.drawPath(path, paint);
}
}
@Override
public boolean onTouchEvent(MotionEvent motionEvent) {
if (motionEvent.getAction() == 0 && this.lite_abstract) {
this.lite_abstract = false;
this.lite_boolean.setVisibility(8);
this.lite_throws.setText(h40.lite_goto());
this.lite_throws.setVisibility(8);
this.lite_finally.lite_new().lite_char().lite_new(true);
this.lite_finally.lite_new().lite_char().lite_catch();
}
return super.onTouchEvent(motionEvent);
}
public void setGeetestUtils(z20 z20Var) {
this.lite_finally = z20Var;
z20Var.lite_new().lite_char().lite_const(this.lite_private);
}
public class b implements b30.b {
public class a implements Runnable {
public a() {
}
@Override
public void run() {
GT3GeetestButton.this.lite_static.lite_try();
GT3GeetestButton.this.lite_static.lite_byte();
GT3GeetestButton.this.setBackgroundResource(R.drawable.gt3_lin_click_shape);
if (GT3GeetestButton.this.lite_protected) {
GT3GeetestButton.this.lite_default.setImageResource(R.mipmap.gt3logogray);
}
GT3GeetestButton.this.lite_switch.setText(h40.lite_try());
GT3GeetestButton.this.lite_switch.setTextColor(-13092808);
GT3GeetestButton.this.lite_switch.setAlpha(1.0f);
}
}
public class RunnableC0017b implements Runnable {
public RunnableC0017b() {
}
@Override
public void run() {
GT3GeetestButton.this.setBackgroundResource(R.drawable.gt3_lin_click_shape);
if (GT3GeetestButton.this.lite_protected) {
GT3GeetestButton.this.lite_default.setImageResource(R.mipmap.gt3logogray);
}
GT3GeetestButton.this.lite_switch.setText(h40.lite_try());
GT3GeetestButton.this.lite_switch.setTextColor(-13092808);
GT3GeetestButton.this.lite_switch.setAlpha(1.0f);
GT3GeetestButton.this.lite_static.lite_case();
}
}
public class c implements Runnable {
public c() {
}
@Override
public void run() {
GT3GeetestButton.this.lite_static.lite_else();
GT3GeetestButton.this.setBackgroundResource(R.drawable.gt3_lin_bg_shape);
if (GT3GeetestButton.this.lite_protected) {
GT3GeetestButton.this.lite_default.setImageResource(R.mipmap.gt3logogray);
}
GT3GeetestButton.this.lite_switch.setText(h40.lite_do());
GT3GeetestButton.this.lite_switch.setTextColor(-13092808);
GT3GeetestButton.this.lite_switch.setAlpha(1.0f);
}
}
public class d implements Runnable {
public d() {
}
@Override
public void run() {
GT3GeetestButton.this.lite_static.lite_char();
GT3GeetestButton.this.setBackgroundResource(R.drawable.gt3_lin_wait_shape);
GT3GeetestButton.this.lite_switch.setTextColor(-6842473);
GT3GeetestButton.this.lite_switch.setText(h40.lite_long());
GT3GeetestButton.this.lite_switch.setAlpha(1.0f);
}
}
public class e implements Runnable {
public e() {
}
@Override
public void run() {
GT3GeetestButton.this.lite_static.lite_goto();
GT3GeetestButton.this.setBackgroundResource(R.drawable.gt3_lin_success_shape);
GT3GeetestButton.this.lite_switch.setText(h40.lite_char());
GT3GeetestButton.this.lite_switch.setTextColor(-15162286);
GT3GeetestButton.this.lite_switch.setAlpha(1.0f);
if (GT3GeetestButton.this.lite_protected) {
GT3GeetestButton.this.lite_default.setImageResource(R.mipmap.gt3logogreen);
}
GT3GeetestButton.this.lite_abstract = true;
GT3GeetestButton.this.lite_throws.setVisibility(8);
}
}
public class f implements Runnable {
public f() {
}
@Override
public void run() {
GT3GeetestButton.this.lite_static.lite_case();
GT3GeetestButton.this.setBackgroundResource(R.drawable.gt3_lin_click_shape);
if (GT3GeetestButton.this.lite_protected) {
GT3GeetestButton.this.lite_default.setImageResource(R.mipmap.gt3logogray);
}
GT3GeetestButton.this.lite_switch.setText(h40.lite_try());
GT3GeetestButton.this.lite_switch.setTextColor(-13092808);
GT3GeetestButton.this.lite_switch.setAlpha(1.0f);
GT3GeetestButton.this.lite_abstract = true;
}
}
public class g implements Runnable {
public final String lite_static;
public final String lite_switch;
public g(String str, String str2) {
this.lite_static = str;
this.lite_switch = str2;
}
@Override
public void run() {
GT3GeetestButton.this.lite_static.lite_new();
GT3GeetestButton.this.setBackgroundResource(R.drawable.gt3_lin_file_shape);
if (GT3GeetestButton.this.lite_protected) {
GT3GeetestButton.this.lite_default.setImageResource(R.mipmap.gt3logogray);
}
GT3GeetestButton.this.lite_boolean.setText(this.lite_static);
GT3GeetestButton.this.lite_boolean.setVisibility(0);
if (!TextUtils.isEmpty(this.lite_static) && this.lite_static.startsWith("_") && !TextUtils.isEmpty(this.lite_switch)) {
GT3GeetestButton.this.lite_switch.setText(this.lite_switch);
} else if (TextUtils.equals("", this.lite_static)) {
GT3GeetestButton.this.lite_switch.setText(this.lite_switch);
} else {
GT3GeetestButton.this.lite_switch.setText(h40.lite_byte());
}
GT3GeetestButton.this.lite_throws.setVisibility(0);
GT3GeetestButton.this.lite_throws.setText(h40.lite_goto());
GT3GeetestButton.this.lite_switch.setTextColor(-10395295);
GT3GeetestButton.this.lite_switch.setAlpha(1.0f);
GT3GeetestButton.this.lite_abstract = true;
}
}
public b() {
}
@Override
public void a() {
GT3GeetestButton.this.lite_instanceof = true;
if (GT3GeetestButton.lite_const(GT3GeetestButton.this.lite_extends).isFinishing() || GT3GeetestButton.this.lite_extends == null) {
return;
}
GT3GeetestButton.lite_const(GT3GeetestButton.this.lite_extends).runOnUiThread(new e());
}
@Override
public void b() {
GT3GeetestButton.this.lite_protected = true;
GT3GeetestButton.this.lite_default.setClickable(true);
}
@Override
public void c() {
if (GT3GeetestButton.lite_const(GT3GeetestButton.this.lite_extends).isFinishing() || GT3GeetestButton.this.lite_extends == null) {
return;
}
GT3GeetestButton.lite_const(GT3GeetestButton.this.lite_extends).runOnUiThread(new d());
}
@Override
public void d() {
GT3GeetestButton.this.lite_instanceof = false;
GT3GeetestButton.this.lite_continue = false;
if (GT3GeetestButton.lite_const(GT3GeetestButton.this.lite_extends).isFinishing() || GT3GeetestButton.this.lite_extends == null) {
return;
}
GT3GeetestButton.lite_const(GT3GeetestButton.this.lite_extends).runOnUiThread(new c());
}
@Override
public void f() {
GT3GeetestButton.this.lite_transient = true;
GT3GeetestButton.this.lite_continue = true;
GT3GeetestButton.this.lite_interface = true;
}
@Override
public void i() {
GT3GeetestButton.this.lite_transient = false;
}
@Override
public void lite_do() {
GT3GeetestButton.this.lite_protected = false;
GT3GeetestButton.this.lite_default.setClickable(false);
}
@Override
public void lite_for() {
if (GT3GeetestButton.lite_const(GT3GeetestButton.this.lite_extends).isFinishing() || GT3GeetestButton.this.lite_extends == null) {
return;
}
GT3GeetestButton.lite_const(GT3GeetestButton.this.lite_extends).runOnUiThread(new f());
}
@Override
public void lite_if() {
GT3GeetestButton.this.lite_transient = true;
GT3GeetestButton.this.lite_instanceof = true;
}
public void lite_int() {
GT3GeetestButton.this.lite_transient = true;
if (GT3GeetestButton.this.lite_package) {
GT3GeetestButton.this.lite_continue = false;
if (GT3GeetestButton.lite_const(GT3GeetestButton.this.lite_extends).isFinishing() || GT3GeetestButton.this.lite_extends == null) {
return;
}
GT3GeetestButton.lite_const(GT3GeetestButton.this.lite_extends).runOnUiThread(new a());
return;
}
GT3GeetestButton.this.lite_continue = false;
if (GT3GeetestButton.lite_const(GT3GeetestButton.this.lite_extends).isFinishing() || GT3GeetestButton.this.lite_extends == null) {
return;
}
GT3GeetestButton.lite_const(GT3GeetestButton.this.lite_extends).runOnUiThread(new RunnableC0017b());
}
@Override
public void a(String str, String str2) {
GT3GeetestButton.this.lite_transient = true;
GT3GeetestButton.this.lite_instanceof = true;
if (GT3GeetestButton.lite_const(GT3GeetestButton.this.lite_extends).isFinishing() || GT3GeetestButton.this.lite_extends == null) {
return;
}
GT3GeetestButton.lite_const(GT3GeetestButton.this.lite_extends).runOnUiThread(new g(str2, str));
}
}
public GT3GeetestButton(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
this.lite_package = true;
this.lite_abstract = true;
this.lite_continue = false;
this.lite_strictfp = new ArrayList();
this.lite_volatile = false;
this.lite_interface = false;
this.lite_transient = false;
this.lite_implements = true;
this.lite_instanceof = true;
lite_catch(context);
}
public GT3GeetestButton(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
this.lite_package = true;
this.lite_abstract = true;
this.lite_continue = false;
this.lite_strictfp = new ArrayList();
this.lite_volatile = false;
this.lite_interface = false;
this.lite_transient = false;
this.lite_implements = true;
this.lite_instanceof = true;
lite_catch(context);
}
}