正在查看: Cantique de Louanges v12 应用的 codigo.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Cantique de Louanges v12 应用的 codigo.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.eugene.hymnesetlouanges;
import android.R;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.graphics.Typeface;
import android.graphics.drawable.GradientDrawable;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.google.android.gms.cast.MediaError;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
public class codigo extends Activity_ext_class implements com.eugene.hymnesetlouanges.a, View.OnClickListener {
config k;
String l;
String m;
SharedPreferences n;
long o;
String p;
String q;
ProgressBar r;
boolean s = false;
private class a extends AsyncTask {
String a;
class DialogInterfaceOnClickListenerC0084a implements DialogInterface.OnClickListener {
DialogInterfaceOnClickListenerC0084a() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
codigo.this.findViewById(2131362638).setVisibility(0);
}
}
class b implements DialogInterface.OnShowListener {
final AlertDialog a;
b(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onShow(DialogInterface dialogInterface) {
this.a.getButton(-1).setTextColor(Color.parseColor("#" + codigo.this.a));
}
}
class c implements DialogInterface.OnShowListener {
final AlertDialog a;
c(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onShow(DialogInterface dialogInterface) {
this.a.getButton(-1).setTextColor(Color.parseColor("#" + codigo.this.a));
}
}
public a(String str) {
this.a = str;
}
@Override
public String doInBackground(String... strArr) {
String str;
rf.h hVar = new rf.h();
bf.e eVar = new bf.e(config.f23m6 + "/srv/codigo_verif.php?idusu=" + codigo.this.o + "&c=" + codigo.this.p);
nf.g gVar = new nf.g();
try {
gVar.a("c_acceso", new of.f(this.a));
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
eVar.a(gVar);
eVar.x("User-Agent", "Android Vinebre Software");
str = "";
try {
xe.i c2 = hVar.a(eVar).c();
str = c2 != null ? ag.d.d(c2) : "";
if (c2 != null) {
try {
c2.g();
} catch (IOException e2) {
e2.printStackTrace();
}
}
} catch (Exception e3) {
e3.printStackTrace();
}
hVar.b().shutdown();
return str;
}
@Override
public void onPostExecute(String str) {
codigo.this.r.setVisibility(8);
AlertDialog.Builder builder = new AlertDialog.Builder(codigo.this);
builder.setCancelable(false).setPositiveButton(codigo.this.getString(2131886114), new DialogInterfaceOnClickListenerC0084a());
if (str.indexOf("ANDROID:OK") == -1) {
try {
if (str.indexOf("ANDROID:KO") != -1) {
builder.setMessage(2131886300);
AlertDialog create = builder.create();
if (!codigo.this.a.equals("")) {
create.setOnShowListener(new b(create));
}
create.show();
((TextView) create.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
} else {
builder.setMessage(2131886423);
AlertDialog create2 = builder.create();
if (!codigo.this.a.equals("")) {
create2.setOnShowListener(new c(create2));
}
create2.show();
((TextView) create2.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
}
return;
} catch (Exception unused) {
return;
}
}
SharedPreferences.Editor edit = codigo.this.n.edit();
edit.putBoolean("glob_acceso_validado", true);
edit.commit();
if (codigo.this.k.T4 == 2) {
Intent intent = new Intent(codigo.this, (Class<?>) t_menugrid.class);
codigo codigoVar = codigo.this;
codigoVar.k.b = MediaError.DetailedErrorCode.APP;
SharedPreferences.Editor edit2 = codigoVar.n.edit();
edit2.putInt("ind_secc_sel", codigo.this.k.b);
edit2.commit();
intent.putExtra("es_root", true);
codigo.this.startActivity(intent);
codigo.this.finish();
return;
}
boolean z = false;
int i = 0;
while (!z) {
m[] mVarArr = codigo.this.k.Z1;
if (i >= mVarArr.length) {
break;
} else if (mVarArr[i].B) {
i++;
} else {
z = true;
}
}
k C = codigo.this.k.C(Integer.valueOf(z ? i : 0), codigo.this);
C.a.putExtra("es_root", true);
codigo.this.startActivity(C.a);
codigo.this.finish();
}
@Override
protected void onPreExecute() {
codigo.this.findViewById(2131362638).setVisibility(8);
codigo.this.r.setVisibility(0);
}
}
private class b extends AsyncTask {
class a implements DialogInterface.OnClickListener {
a() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
codigo.this.finish();
}
}
class DialogInterfaceOnClickListenerC0085b implements DialogInterface.OnClickListener {
DialogInterfaceOnClickListenerC0085b() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
codigo.this.findViewById(2131362638).setVisibility(0);
}
}
class c implements DialogInterface.OnShowListener {
final AlertDialog a;
c(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onShow(DialogInterface dialogInterface) {
this.a.getButton(-1).setTextColor(Color.parseColor("#" + codigo.this.a));
}
}
@Override
public String doInBackground(String... strArr) {
String str;
rf.h hVar = new rf.h();
bf.e eVar = new bf.e(config.f23m6 + "/srv/solicitar_acceso.php?idusu=" + codigo.this.o + "&c=" + codigo.this.p);
eVar.x("User-Agent", "Android Vinebre Software");
str = "";
try {
xe.i c2 = hVar.a(eVar).c();
str = c2 != null ? ag.d.d(c2) : "";
if (c2 != null) {
try {
c2.g();
} catch (IOException e) {
e.printStackTrace();
}
}
} catch (Exception e2) {
e2.printStackTrace();
}
hVar.b().shutdown();
return str;
}
@Override
public void onPostExecute(String str) {
codigo.this.r.setVisibility(8);
AlertDialog.Builder builder = new AlertDialog.Builder(codigo.this);
builder.setCancelable(false);
if (codigo.this.k.H2 == 3) {
builder.setPositiveButton(2131886286, new a());
} else {
builder.setPositiveButton(2131886114, new DialogInterfaceOnClickListenerC0085b());
}
if (str.indexOf("ANDROID:1-") == -1) {
builder.setMessage(str.indexOf("ANDROID:00-") != -1 ? 2131886112 : str.indexOf("ANDROID:0-") != -1 ? 2131886113 : str.indexOf("ANDROID:2-") != -1 ? 2131886111 : 2131886423);
AlertDialog create = builder.create();
if (!codigo.this.a.equals("")) {
create.setOnShowListener(new c(create));
}
create.show();
try {
((TextView) create.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
return;
} catch (Exception unused) {
return;
}
}
SharedPreferences.Editor edit = codigo.this.n.edit();
edit.putBoolean("glob_acceso_validado", true);
edit.commit();
if (codigo.this.k.T4 == 2) {
Intent intent = new Intent(codigo.this, (Class<?>) t_menugrid.class);
codigo codigoVar = codigo.this;
codigoVar.k.b = MediaError.DetailedErrorCode.APP;
SharedPreferences.Editor edit2 = codigoVar.n.edit();
edit2.putInt("ind_secc_sel", codigo.this.k.b);
edit2.commit();
intent.putExtra("es_root", true);
codigo.this.startActivity(intent);
codigo.this.finish();
return;
}
boolean z = false;
int i = 0;
while (!z) {
m[] mVarArr = codigo.this.k.Z1;
if (i >= mVarArr.length) {
break;
} else if (mVarArr[i].B) {
i++;
} else {
z = true;
}
}
k C = codigo.this.k.C(Integer.valueOf(z ? i : 0), codigo.this);
C.a.putExtra("es_root", true);
codigo.this.startActivity(C.a);
codigo.this.finish();
}
@Override
protected void onPreExecute() {
codigo.this.findViewById(2131362638).setVisibility(8);
codigo.this.r.setVisibility(0);
}
private b() {
}
}
@Override
public void abrir_secc(View view) {
}
@Override
public void onAttachedToWindow() {
super.onAttachedToWindow();
getWindow().setFormat(1);
}
@Override
public void onBackPressed() {
if (!this.d || this.s || !this.k.N5) {
super.onBackPressed();
} else {
this.s = true;
config.t(this);
}
}
@Override
public void onClick(View view) {
if (view.getId() != 2131362041) {
if (view.getId() == 2131363505) {
new b().execute(new String[0]);
}
} else {
String trim = ((EditText) findViewById(2131362268)).getText().toString().trim();
if (trim.equals("")) {
return;
}
new a(trim).execute(new String[0]);
}
}
@Override
public void onCreate(Bundle bundle) {
config configVar = (config) getApplicationContext();
this.k = configVar;
if (configVar.l1 == null) {
configVar.f1();
}
this.d = true;
config configVar2 = this.k;
String str = configVar2.n1;
this.l = str;
this.m = configVar2.o1;
this.a = config.h(str, configVar2.w1);
if (!config.J("#" + this.l)) {
setTheme(2131952516);
}
super.onCreate(bundle);
setContentView(2131558484);
this.k.v0(this, Boolean.FALSE);
SharedPreferences sharedPreferences = getSharedPreferences("sh", 0);
this.n = sharedPreferences;
this.o = sharedPreferences.getLong("idusu", 0L);
this.p = this.n.getString("cod", "");
this.q = this.n.getString("cod_g", "");
this.r = (ProgressBar) findViewById(2131363017);
if (!this.l.equals("")) {
findViewById(2131362685).setBackgroundDrawable(new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[]{Color.parseColor("#" + this.l), Color.parseColor("#" + this.m)}));
StringBuilder sb = new StringBuilder();
sb.append("#");
sb.append(this.l);
int i = config.J(sb.toString()) ? -16777216 : -1;
((TextView) findViewById(2131363505)).setTextColor(i);
((TextView) findViewById(2131363438)).setTextColor(i);
config.G((EditText) findViewById(2131362268), Boolean.valueOf(true ^ config.J("#" + this.l)), this.k.D1);
config.b1(this.r, this.k.w1);
}
int i2 = this.k.H2;
if (i2 != 2 && i2 != 4) {
if (i2 == 3) {
new b().execute(new String[0]);
return;
}
return;
}
TextView textView = (TextView) findViewById(2131362041);
if (!this.k.w1.equals("")) {
textView.setBackgroundColor(Color.parseColor("#" + this.k.w1));
if (config.J("#" + this.k.w1)) {
textView.setTextColor(-16777216);
}
}
textView.setOnClickListener(this);
if (this.k.H2 == 4) {
findViewById(2131363505).setOnClickListener(this);
findViewById(2131363505).setVisibility(0);
}
if (this.k.M2 != null) {
new a(this.k.M2).execute(new String[0]);
} else {
findViewById(2131362638).setVisibility(0);
findViewById(2131362268).requestFocus();
}
}
}