正在查看: Cantique de Louanges v12 应用的 eliminarperfil.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Cantique de Louanges v12 应用的 eliminarperfil.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.eugene.hymnesetlouanges;
import android.R;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.app.SearchManager;
import android.content.Context;
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.ListView;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.appnext.ads.fullscreen.RewardedVideo;
import com.appnext.core.AppnextAdCreativeType;
import com.appnext.core.callbacks.OnAdClosed;
import com.appnext.core.callbacks.OnAdError;
import com.appnext.core.callbacks.OnAdLoaded;
import com.appnext.core.callbacks.OnVideoEnded;
import com.facebook.ads.AdView;
import com.facebook.ads.RewardedVideoAd;
import com.facebook.ads.RewardedVideoAdListener;
import com.google.android.gms.ads.AdError;
import com.google.android.gms.ads.FullScreenContentCallback;
import com.google.android.gms.ads.LoadAdError;
import com.google.android.gms.ads.OnUserEarnedRewardListener;
import com.google.android.gms.ads.rewarded.RewardItem;
import com.google.android.gms.ads.rewarded.RewardedAd;
import com.google.android.gms.ads.rewarded.RewardedAdLoadCallback;
import com.startapp.sdk.adsbase.Ad;
import com.startapp.sdk.adsbase.StartAppAd;
import com.startapp.sdk.adsbase.VideoListener;
import com.startapp.sdk.adsbase.adlisteners.AdDisplayListener;
import com.startapp.sdk.adsbase.adlisteners.AdEventListener;
import com.wortise.ads.banner.BannerAd;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public class eliminarperfil extends Activity_ext_class implements com.eugene.hymnesetlouanges.a, View.OnClickListener, RewardedVideoAdListener, OnAdLoaded, OnAdClosed, OnVideoEnded, OnAdError, VideoListener, AdEventListener {
long k;
int l;
config m;
boolean n;
boolean o;
boolean p;
com.eugene.hymnesetlouanges.c q;
boolean r = false;
ListView s;
SharedPreferences t;
ProgressDialog u;
Bundle v;
class a implements SearchManager.OnCancelListener {
a() {
}
@Override
public void onCancel() {
eliminarperfil eliminarperfilVar = eliminarperfil.this;
eliminarperfilVar.b = false;
eliminarperfilVar.setResult(0);
}
}
class b implements SearchManager.OnDismissListener {
b() {
}
@Override
public void onDismiss() {
eliminarperfil.this.c = false;
}
}
class c implements DialogInterface.OnShowListener {
c() {
}
@Override
public void onShow(DialogInterface dialogInterface) {
config.b1((ProgressBar) eliminarperfil.this.u.findViewById(R.id.progress), eliminarperfil.this.m.w1);
}
}
class d implements DialogInterface.OnClickListener {
d() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
eliminarperfil.this.b = true;
config.f25o6 = true;
Intent intent = new Intent();
intent.putExtra("finalizar", true);
intent.putExtra("finalizar_app", true);
eliminarperfil.this.setResult(-1, intent);
eliminarperfil.this.finish();
}
}
class e implements DialogInterface.OnShowListener {
final AlertDialog a;
e(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onShow(DialogInterface dialogInterface) {
this.a.getButton(-1).setTextColor(Color.parseColor("#" + eliminarperfil.this.a));
}
}
class f extends RewardedAdLoadCallback {
final Context b;
class a extends FullScreenContentCallback {
a() {
}
@Override
public void onAdDismissedFullScreenContent() {
eliminarperfil eliminarperfilVar = eliminarperfil.this;
if (eliminarperfilVar.r) {
eliminarperfilVar.abrir_secc(eliminarperfilVar.e);
}
}
@Override
public void onAdFailedToShowFullScreenContent(AdError adError) {
eliminarperfil eliminarperfilVar = eliminarperfil.this;
eliminarperfilVar.abrir_secc(eliminarperfilVar.e);
}
@Override
public void onAdShowedFullScreenContent() {
}
}
class b implements OnUserEarnedRewardListener {
b() {
}
@Override
public void onUserEarnedReward(RewardItem rewardItem) {
f fVar = f.this;
eliminarperfil.this.r = true;
config.i1(fVar.b);
}
}
f(Context context) {
this.b = context;
}
@Override
public void onAdLoaded(RewardedAd rewardedAd) {
eliminarperfil.this.f.cancel();
rewardedAd.setFullScreenContentCallback(new a());
rewardedAd.show((Activity) this.b, new b());
}
@Override
public void onAdFailedToLoad(LoadAdError loadAdError) {
eliminarperfil eliminarperfilVar = eliminarperfil.this;
if (eliminarperfilVar.m.f(this.b, eliminarperfilVar.h)) {
return;
}
eliminarperfil.this.f.cancel();
eliminarperfil eliminarperfilVar2 = eliminarperfil.this;
eliminarperfilVar2.abrir_secc(eliminarperfilVar2.e);
}
}
class g implements AdDisplayListener {
g() {
}
public void adClicked(Ad ad) {
}
public void adDisplayed(Ad ad) {
}
public void adHidden(Ad ad) {
eliminarperfil eliminarperfilVar = eliminarperfil.this;
if (eliminarperfilVar.r) {
eliminarperfilVar.abrir_secc(eliminarperfilVar.e);
}
}
public void adNotDisplayed(Ad ad) {
}
}
private class h extends AsyncTask {
class a implements DialogInterface.OnClickListener {
a() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
Intent intent = new Intent(eliminarperfil.this, (Class<?>) preperfil.class);
eliminarperfil eliminarperfilVar = eliminarperfil.this;
if (eliminarperfilVar.n) {
intent = config.r(intent, eliminarperfilVar.v);
} else {
intent.putExtra("idsecc", eliminarperfilVar.l);
}
eliminarperfil eliminarperfilVar2 = eliminarperfil.this;
if (eliminarperfilVar2.m.T4 != 2 || eliminarperfilVar2.p) {
intent.putExtra("es_root", true);
eliminarperfil.this.d = false;
}
intent.putExtra("desde_main", eliminarperfil.this.o);
intent.putExtra("desde_main_oblig", eliminarperfil.this.p);
eliminarperfil eliminarperfilVar3 = eliminarperfil.this;
eliminarperfilVar3.b = true;
eliminarperfilVar3.startActivity(intent);
}
}
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("#" + eliminarperfil.this.a));
}
}
@Override
public Byte doInBackground(String... strArr) {
HttpURLConnection httpURLConnection;
HttpURLConnection httpURLConnection2 = null;
try {
try {
httpURLConnection = (HttpURLConnection) new URL(config.f23m6 + "/srv/eliminar_perfil.php?idusu=" + eliminarperfil.this.k + "&idapp=3014518&c=" + eliminarperfil.this.t.getString("cod", "")).openConnection();
} catch (Exception unused) {
}
} catch (Throwable th) {
th = th;
}
try {
httpURLConnection.setDoInput(true);
httpURLConnection.setConnectTimeout(10000);
httpURLConnection.setReadTimeout(10000);
httpURLConnection.setRequestProperty("User-Agent", "Android Vinebre Software");
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()));
StringBuilder sb = new StringBuilder();
while (true) {
String readLine = bufferedReader.readLine();
if (readLine == null) {
break;
}
sb.append(readLine + "\n");
}
if (sb.toString().indexOf("ANDROID:OK") != -1) {
httpURLConnection.disconnect();
return (byte) 1;
}
httpURLConnection.disconnect();
return (byte) 2;
} catch (Exception unused2) {
httpURLConnection2 = httpURLConnection;
if (httpURLConnection2 != null) {
httpURLConnection2.disconnect();
}
return (byte) 2;
} catch (Throwable th2) {
th = th2;
httpURLConnection2 = httpURLConnection;
if (httpURLConnection2 != null) {
httpURLConnection2.disconnect();
}
throw th;
}
}
@Override
public void onPostExecute(Byte b2) {
if (eliminarperfil.this.u.isShowing()) {
eliminarperfil.this.u.dismiss();
}
if (b2.byteValue() == 1) {
try {
eliminarperfil eliminarperfilVar = eliminarperfil.this;
eliminarperfilVar.m.p0(eliminarperfilVar, 1).delete();
} catch (Exception unused) {
}
SharedPreferences.Editor edit = eliminarperfil.this.t.edit();
edit.putBoolean("dadodebaja", true);
edit.commit();
eliminarperfil.this.c();
return;
}
AlertDialog create = new AlertDialog.Builder(eliminarperfil.this).setCancelable(false).setPositiveButton(eliminarperfil.this.getString(2131886114), new a()).setMessage(2131886423).create();
if (!eliminarperfil.this.a.equals("")) {
create.setOnShowListener(new b(create));
}
create.show();
try {
((TextView) create.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
} catch (Exception unused2) {
}
}
private h() {
}
}
private void a(Context context) {
this.g = new f(context);
}
@Override
public void abrir_secc(android.view.View r5) {
throw new UnsupportedOperationException("Method not decompiled: com.eugene.hymnesetlouanges.eliminarperfil.abrir_secc(android.view.View):void");
}
public void adError(String str) {
this.f.cancel();
abrir_secc(this.e);
}
public void adLoaded(String str, AppnextAdCreativeType appnextAdCreativeType) {
this.f.cancel();
this.h.showAd();
}
void b() {
if (this.p) {
this.m.v0(this, Boolean.FALSE);
return;
}
int u0 = this.m.u0(this);
int i = this.m.T4;
int i2 = 0;
if (i == 1) {
ListView listView = (ListView) findViewById(2131362584);
this.s = listView;
this.m.s(listView);
} else if (i == 0) {
int i3 = 0;
int i4 = 0;
while (true) {
m[] mVarArr = this.m.Z1;
if (i3 >= mVarArr.length) {
break;
}
if (!mVarArr[i3].B) {
findViewById(i3).setOnClickListener(this);
i4++;
if (i4 == u0) {
break;
}
}
i3++;
}
if (findViewById(2131362438) != null && findViewById(2131362438).getVisibility() == 0) {
findViewById(2131362438).setOnClickListener(this);
}
}
while (true) {
int[] iArr = this.m.c2;
if (i2 >= iArr.length) {
return;
}
int i7 = iArr[i2];
if (i7 > 0) {
findViewById(i7).setOnClickListener(this);
}
i2++;
}
}
void c() {
AlertDialog create = new AlertDialog.Builder(this).setCancelable(false).setPositiveButton(getString(2131886114), new d()).setMessage(2131886700).create();
if (!this.a.equals("")) {
create.setOnShowListener(new e(create));
}
create.show();
try {
((TextView) create.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
} catch (Exception unused) {
}
}
@Override
protected void onActivityResult(int i, int i2, Intent intent) {
config configVar = this.m;
if ((configVar == null || !configVar.U0(i, i2, intent, this)) && i2 == -1 && intent != null && intent.hasExtra("finalizar") && intent.getExtras().getBoolean("finalizar")) {
if (!intent.getExtras().getBoolean("finalizar_app")) {
this.d = false;
}
setResult(-1, intent);
finish();
}
}
@Override
public void onAdClicked(com.facebook.ads.Ad ad) {
}
public void onAdClosed() {
if (this.r) {
abrir_secc(this.e);
}
}
@Override
public void onAdLoaded(com.facebook.ads.Ad ad) {
this.f.cancel();
this.i.show();
}
@Override
public void onAttachedToWindow() {
super.onAttachedToWindow();
getWindow().setFormat(1);
}
@Override
public void onClick(View view) {
String str;
String str2;
String str3;
String str4;
String str5;
String str6;
String str7;
String str8 = this.m.f60q4;
if ((str8 == null || str8.equals("")) && (((str = this.m.d3) == null || str.equals("")) && (((str2 = this.m.f58p4) == null || str2.equals("")) && (((str3 = this.m.f66t4) == null || str3.equals("")) && (((str4 = this.m.f68u4) == null || str4.equals("")) && (((str5 = this.m.J4) == null || str5.equals("")) && (((str6 = this.m.f70v4) == null || str6.equals("")) && ((str7 = this.m.f72w4) == null || str7.equals(""))))))))) {
abrir_secc(view);
return;
}
String str9 = this.m.f60q4;
if (str9 != null && !str9.equals("")) {
this.h = new RewardedVideo(this, this.m.f60q4);
}
String str10 = this.m.f58p4;
if (str10 != null) {
str10.equals("");
}
String str11 = this.m.f66t4;
if (str11 != null && !str11.equals("")) {
this.i = new RewardedVideoAd(this, this.m.f66t4);
}
String str12 = this.m.f68u4;
if (str12 != null && !str12.equals("")) {
this.j = new StartAppAd(this);
}
ProgressDialog progressDialog = new ProgressDialog(this);
this.f = progressDialog;
this.e = view;
if (this.m.j1(this, view, this.a, progressDialog, this.g, this.h, this.i, this.j, view)) {
return;
}
abrir_secc(view);
}
@Override
public void onCreate(Bundle bundle) {
String str;
String str2;
this.m = (config) getApplicationContext();
a(this);
this.a = config.h("FFFFFFFF", this.m.w1);
super.onCreate(bundle);
Bundle extras = getIntent().getExtras();
this.v = extras;
if (bundle == null) {
this.d = extras != null && extras.containsKey("es_root") && this.v.getBoolean("es_root", false);
} else {
this.d = bundle.containsKey("es_root") && bundle.getBoolean("es_root", false);
}
this.n = this.v.containsKey("externo");
this.o = this.v.getBoolean("desde_main", false);
this.p = this.v.getBoolean("desde_main_oblig", false);
setContentView(2131558516);
b();
if (!this.p) {
this.m.V0(this, false);
}
SearchManager searchManager = (SearchManager) getSystemService("search");
searchManager.setOnCancelListener(new a());
searchManager.setOnDismissListener(new b());
this.q = this.m.F0(this, false);
config configVar = this.m;
int i = configVar.c;
if (this.o) {
str = configVar.n1;
str2 = configVar.o1;
this.l = 0;
} else if (this.n) {
m mVar = configVar.Z1[i];
str = mVar.g;
str2 = mVar.h;
} else {
m mVar2 = configVar.Z1[i];
str = mVar2.g;
str2 = mVar2.h;
this.l = this.v.getInt("idsecc");
}
SharedPreferences sharedPreferences = getSharedPreferences("sh", 0);
this.t = sharedPreferences;
this.k = sharedPreferences.getLong("idusu", 0L);
if (!str.equals("")) {
findViewById(2131362685).setBackgroundDrawable(new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[]{Color.parseColor("#" + str), Color.parseColor("#" + str2)}));
if (config.J("#" + str)) {
((TextView) findViewById(2131362866)).setTextColor(-16777216);
} else {
((TextView) findViewById(2131362866)).setTextColor(-1);
}
}
ProgressDialog progressDialog = new ProgressDialog(this);
this.u = progressDialog;
progressDialog.setMessage(getString(2131886411));
this.u.setIndeterminate(true);
this.u.setOnShowListener(new c());
this.u.show();
new h().execute(new String[0]);
}
@Override
public void onDestroy() {
com.eugene.hymnesetlouanges.c cVar;
BannerAd bannerAd;
com.eugene.hymnesetlouanges.c cVar2;
AdView adView;
com.eugene.hymnesetlouanges.c cVar3;
com.google.android.gms.ads.AdView adView2;
if (this.m.J3 != 0 && (cVar3 = this.q) != null && (adView2 = cVar3.a) != null) {
adView2.destroy();
}
if (this.m.J3 != 0 && (cVar2 = this.q) != null && (adView = cVar2.b) != null) {
adView.destroy();
}
if (this.m.J3 != 0 && (cVar = this.q) != null && (bannerAd = cVar.e) != null) {
bannerAd.destroy();
}
if ((this.d && isFinishing()) || config.f25o6) {
config.d0(this);
}
super.onDestroy();
}
@Override
public void onError(com.facebook.ads.Ad ad, com.facebook.ads.AdError adError) {
this.f.cancel();
abrir_secc(this.e);
}
public void onFailedToReceiveAd(Ad ad) {
this.f.cancel();
abrir_secc(this.e);
}
@Override
public void onLoggingImpression(com.facebook.ads.Ad ad) {
}
@Override
public void onPause() {
com.eugene.hymnesetlouanges.c cVar;
BannerAd bannerAd;
com.eugene.hymnesetlouanges.c cVar2;
com.google.android.gms.ads.AdView adView;
if (this.m.J3 != 0 && (cVar2 = this.q) != null && (adView = cVar2.a) != null) {
adView.pause();
}
if (this.m.J3 != 0 && (cVar = this.q) != null && (bannerAd = cVar.e) != null) {
bannerAd.pause();
}
super.onPause();
config.W0(this);
}
public void onReceiveAd(Ad ad) {
this.f.cancel();
this.j.showAd("REWARDED VIDEO", new g());
}
@Override
public void onResume() {
com.eugene.hymnesetlouanges.c cVar;
BannerAd bannerAd;
com.eugene.hymnesetlouanges.c cVar2;
com.google.android.gms.ads.AdView adView;
super.onResume();
config.X0(this);
if (this.m.J3 != 0 && (cVar2 = this.q) != null && (adView = cVar2.a) != null) {
adView.resume();
}
if (this.m.J3 == 0 || (cVar = this.q) == null || (bannerAd = cVar.e) == null) {
return;
}
bannerAd.resume();
}
@Override
public void onRewardedVideoClosed() {
if (this.r) {
abrir_secc(this.e);
}
}
@Override
public void onRewardedVideoCompleted() {
this.r = true;
config.i1(this);
}
@Override
public void onSaveInstanceState(Bundle bundle) {
super.onSaveInstanceState(bundle);
bundle.putBoolean("es_root", this.d);
}
@Override
public boolean onSearchRequested() {
this.b = true;
this.c = true;
return super.onSearchRequested();
}
@Override
public void onStop() {
super.onStop();
if (!this.b || this.c) {
return;
}
finish();
}
public void onVideoCompleted() {
this.r = true;
config.i1(this);
}
public void videoEnded() {
this.r = true;
config.i1(this);
}
}