正在查看: Cantique de Louanges v12 应用的 privados.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Cantique de Louanges v12 应用的 privados.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.content.res.Configuration;
import android.graphics.Color;
import android.graphics.Typeface;
import android.graphics.drawable.GradientDrawable;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.MenuItem;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.ListView;
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.eugene.hymnesetlouanges.t_chat;
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;
public class privados extends Activity_ext_class implements com.eugene.hymnesetlouanges.a, View.OnClickListener, RewardedVideoAdListener, OnAdLoaded, OnAdClosed, OnVideoEnded, OnAdError, VideoListener, AdEventListener {
private long k;
int l;
private String m;
private SharedPreferences n;
private config o;
private View p;
private boolean r;
private Bundle s;
private com.eugene.hymnesetlouanges.c t;
ListView v;
private boolean q = false;
boolean u = false;
class a implements SearchManager.OnCancelListener {
a() {
}
@Override
public void onCancel() {
privados privadosVar = privados.this;
privadosVar.b = false;
privadosVar.setResult(0);
}
}
class b implements SearchManager.OnDismissListener {
b() {
}
@Override
public void onDismiss() {
privados.this.c = false;
}
}
class c implements DialogInterface.OnClickListener {
c() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
new t_chat.y((String) privados.this.p.getTag(2131362428), 1, privados.this.k, privados.this.m).execute(new String[0]);
}
}
class d implements DialogInterface.OnShowListener {
final AlertDialog a;
d(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onShow(DialogInterface dialogInterface) {
this.a.getButton(-1).setTextColor(Color.parseColor("#" + privados.this.a));
this.a.getButton(-2).setTextColor(Color.parseColor("#" + privados.this.a));
}
}
class e implements DialogInterface.OnClickListener {
final AlertDialog a;
e(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
privados privadosVar = privados.this;
config.I(privadosVar, (String) privadosVar.p.getTag(2131362428));
privados.this.i();
this.a.show();
try {
((TextView) this.a.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
} catch (Exception unused) {
}
}
}
class f implements DialogInterface.OnShowListener {
final AlertDialog a;
f(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onShow(DialogInterface dialogInterface) {
this.a.getButton(-1).setTextColor(Color.parseColor("#" + privados.this.a));
this.a.getButton(-2).setTextColor(Color.parseColor("#" + privados.this.a));
}
}
class g extends RewardedAdLoadCallback {
final Context b;
class a extends FullScreenContentCallback {
a() {
}
@Override
public void onAdDismissedFullScreenContent() {
privados privadosVar = privados.this;
if (privadosVar.u) {
privadosVar.abrir_secc(privadosVar.e);
}
}
@Override
public void onAdFailedToShowFullScreenContent(AdError adError) {
privados privadosVar = privados.this;
privadosVar.abrir_secc(privadosVar.e);
}
@Override
public void onAdShowedFullScreenContent() {
}
}
class b implements OnUserEarnedRewardListener {
b() {
}
@Override
public void onUserEarnedReward(RewardItem rewardItem) {
g gVar = g.this;
privados.this.u = true;
config.i1(gVar.b);
}
}
g(Context context) {
this.b = context;
}
@Override
public void onAdLoaded(RewardedAd rewardedAd) {
privados.this.f.cancel();
rewardedAd.setFullScreenContentCallback(new a());
rewardedAd.show((Activity) this.b, new b());
}
@Override
public void onAdFailedToLoad(LoadAdError loadAdError) {
if (privados.this.o.f(this.b, privados.this.h)) {
return;
}
privados.this.f.cancel();
privados privadosVar = privados.this;
privadosVar.abrir_secc(privadosVar.e);
}
}
class h implements AdDisplayListener {
h() {
}
public void adClicked(Ad ad) {
}
public void adDisplayed(Ad ad) {
}
public void adHidden(Ad ad) {
privados privadosVar = privados.this;
if (privadosVar.u) {
privadosVar.abrir_secc(privadosVar.e);
}
}
public void adNotDisplayed(Ad ad) {
}
}
private void f(Context context) {
this.g = new g(context);
}
private void g() {
SharedPreferences.Editor edit = getSharedPreferences("sh", 0).edit();
edit.putBoolean("activa", false);
edit.commit();
}
public void i() {
throw new UnsupportedOperationException("Method not decompiled: com.eugene.hymnesetlouanges.privados.i():void");
}
@Override
public void abrir_secc(android.view.View r5) {
throw new UnsupportedOperationException("Method not decompiled: com.eugene.hymnesetlouanges.privados.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 h() {
int u0 = this.o.u0(this);
int i = this.o.T4;
int i2 = 0;
if (i == 1) {
ListView listView = (ListView) findViewById(2131362584);
this.v = listView;
this.o.s(listView);
} else if (i == 0) {
int i3 = 0;
int i4 = 0;
while (true) {
m[] mVarArr = this.o.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.o.c2;
if (i2 >= iArr.length) {
return;
}
int i7 = iArr[i2];
if (i7 > 0) {
findViewById(i7).setOnClickListener(this);
}
i2++;
}
}
@Override
protected void onActivityResult(int i, int i2, Intent intent) {
config configVar = this.o;
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.u) {
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 onBackPressed() {
if (!this.d || this.q || !this.o.N5) {
super.onBackPressed();
} else {
this.q = true;
config.t(this);
}
}
@Override
public void onClick(View view) {
String str;
String str2;
String str3;
String str4;
String str5;
String str6;
String str7;
if (view.getTag(2131362428) != null) {
openContextMenu(view);
return;
}
String str8 = this.o.f60q4;
if ((str8 == null || str8.equals("")) && (((str = this.o.d3) == null || str.equals("")) && (((str2 = this.o.f58p4) == null || str2.equals("")) && (((str3 = this.o.f66t4) == null || str3.equals("")) && (((str4 = this.o.f68u4) == null || str4.equals("")) && (((str5 = this.o.J4) == null || str5.equals("")) && (((str6 = this.o.f70v4) == null || str6.equals("")) && ((str7 = this.o.f72w4) == null || str7.equals(""))))))))) {
abrir_secc(view);
return;
}
String str9 = this.o.f60q4;
if (str9 != null && !str9.equals("")) {
this.h = new RewardedVideo(this, this.o.f60q4);
}
String str10 = this.o.f58p4;
if (str10 != null) {
str10.equals("");
}
String str11 = this.o.f66t4;
if (str11 != null && !str11.equals("")) {
this.i = new RewardedVideoAd(this, this.o.f66t4);
}
String str12 = this.o.f68u4;
if (str12 != null && !str12.equals("")) {
this.j = new StartAppAd(this);
}
ProgressDialog progressDialog = new ProgressDialog(this);
this.f = progressDialog;
this.e = view;
if (this.o.j1(this, view, this.a, progressDialog, this.g, this.h, this.i, this.j, view)) {
return;
}
abrir_secc(view);
}
@Override
public void onConfigurationChanged(Configuration configuration) {
BannerAd bannerAd;
AdView adView;
com.google.android.gms.ads.AdView adView2;
super.onConfigurationChanged(configuration);
((LinearLayout) findViewById(2131362685)).removeViewAt(0);
h();
((LinearLayout) findViewById(2131362610)).removeAllViews();
com.eugene.hymnesetlouanges.c cVar = this.t;
if (cVar != null && (adView2 = cVar.a) != null) {
try {
adView2.destroy();
} catch (Exception unused) {
}
}
com.eugene.hymnesetlouanges.c cVar2 = this.t;
if (cVar2 != null && (adView = cVar2.b) != null) {
try {
adView.destroy();
} catch (Exception unused2) {
}
}
com.eugene.hymnesetlouanges.c cVar3 = this.t;
if (cVar3 != null && (bannerAd = cVar3.e) != null) {
try {
bannerAd.destroy();
} catch (Exception unused3) {
}
}
this.t = this.o.F0(this, false);
}
@Override
public boolean onContextItemSelected(MenuItem menuItem) {
int itemId = menuItem.getItemId();
if (itemId == 2131362249) {
AlertDialog create = new AlertDialog.Builder(this).setNegativeButton(2131886669, (DialogInterface.OnClickListener) null).setPositiveButton(2131886740, new c()).setMessage(2131886351).create();
if (!this.a.equals("")) {
create.setOnShowListener(new d(create));
}
AlertDialog create2 = new AlertDialog.Builder(this).setNegativeButton(2131886669, (DialogInterface.OnClickListener) null).setPositiveButton(2131886740, new e(create)).setMessage(2131886356).create();
if (!this.a.equals("")) {
create2.setOnShowListener(new f(create2));
}
create2.show();
try {
((TextView) create2.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
} catch (Exception unused) {
}
return true;
}
if (itemId != 2131363081) {
return super.onContextItemSelected(menuItem);
}
config.g(this, (String) this.p.getTag(2131362428), (String) this.p.getTag(2131362431));
SharedPreferences.Editor edit = getSharedPreferences("accion", 0).edit();
edit.putString("id_remit", (String) this.p.getTag(2131362428));
edit.putString("nombre_remit", (String) this.p.getTag(2131362431));
edit.commit();
Intent intent = new Intent();
intent.putExtra("abrir_privado", true);
setResult(-1, intent);
finish();
return true;
}
@Override
public void onCreate(Bundle bundle) {
config configVar = (config) getApplicationContext();
this.o = configVar;
if (configVar.l1 == null) {
configVar.f1();
}
f(this);
config configVar2 = this.o;
int i = configVar2.c;
this.a = config.h(configVar2.Z1[i].g, configVar2.w1);
if (!config.J("#" + this.o.Z1[i].g)) {
setTheme(2131952516);
}
super.onCreate(bundle);
setContentView(2131558693);
h();
this.o.V0(this, false);
SearchManager searchManager = (SearchManager) getSystemService("search");
searchManager.setOnCancelListener(new a());
searchManager.setOnDismissListener(new b());
this.o.q1(this, false, false);
this.t = this.o.F0(this, false);
Bundle extras = getIntent().getExtras();
this.s = extras;
if (bundle == null) {
this.d = extras != null && extras.containsKey("es_root") && this.s.getBoolean("es_root", false);
} else {
this.d = bundle.containsKey("es_root") && bundle.getBoolean("es_root", false);
}
SharedPreferences sharedPreferences = getSharedPreferences("sh", 0);
this.n = sharedPreferences;
this.k = sharedPreferences.getLong("idusu", 0L);
this.m = this.n.getString("cod", "");
this.r = config.J("#" + this.o.Z1[i].g);
if (!this.o.Z1[i].g.equals("")) {
findViewById(2131362685).setBackgroundDrawable(new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[]{Color.parseColor("#" + this.o.Z1[i].g), Color.parseColor("#" + this.o.Z1[i].h)}));
}
int i2 = !this.r ? -1 : -16777216;
((TextView) findViewById(2131363484)).setTextColor(i2);
findViewById(2131363536).setBackgroundColor(i2);
((TextView) findViewById(2131363503)).setTextColor(i2);
this.l = 1;
i();
}
@Override
public void onCreateContextMenu(ContextMenu contextMenu, View view, ContextMenu.ContextMenuInfo contextMenuInfo) {
super.onCreateContextMenu(contextMenu, view, contextMenuInfo);
this.p = view;
contextMenu.setHeaderTitle((String) view.getTag(2131362431));
getMenuInflater().inflate(2131623937, contextMenu);
}
@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.o.J3 != 0 && (cVar3 = this.t) != null && (adView2 = cVar3.a) != null) {
adView2.destroy();
}
if (this.o.J3 != 0 && (cVar2 = this.t) != null && (adView = cVar2.b) != null) {
adView.destroy();
}
if (this.o.J3 != 0 && (cVar = this.t) != 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.o.J3 != 0 && (cVar2 = this.t) != null && (adView = cVar2.a) != null) {
adView.pause();
}
if (this.o.J3 != 0 && (cVar = this.t) != null && (bannerAd = cVar.e) != null) {
bannerAd.pause();
}
super.onPause();
config.W0(this);
if (isFinishing()) {
g();
}
}
public void onReceiveAd(Ad ad) {
this.f.cancel();
this.j.showAd("REWARDED VIDEO", new h());
}
@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);
SharedPreferences.Editor edit = getSharedPreferences("accion", 0).edit();
edit.putInt("accion", 0);
edit.commit();
SharedPreferences.Editor edit2 = getSharedPreferences("sh", 0).edit();
edit2.putBoolean("activa", true);
edit2.commit();
if (this.o.J3 != 0 && (cVar2 = this.t) != null && (adView = cVar2.a) != null) {
adView.resume();
}
if (this.o.J3 == 0 || (cVar = this.t) == null || (bannerAd = cVar.e) == null) {
return;
}
bannerAd.resume();
}
@Override
public void onRewardedVideoClosed() {
if (this.u) {
abrir_secc(this.e);
}
}
@Override
public void onRewardedVideoCompleted() {
this.u = true;
config.i1(this);
}
@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.u = true;
config.i1(this);
}
public void videoEnded() {
this.u = true;
config.i1(this);
}
}