正在查看: Cantique de Louanges v12 应用的 SearchableActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Cantique de Louanges v12 应用的 SearchableActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.eugene.hymnesetlouanges;
import android.app.Activity;
import android.app.ProgressDialog;
import android.app.SearchManager;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.GradientDrawable;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
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.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.util.ArrayList;
public class SearchableActivity extends Activity_ext_class implements com.eugene.hymnesetlouanges.a, View.OnClickListener, RewardedVideoAdListener, OnAdLoaded, OnAdClosed, OnVideoEnded, OnAdError, VideoListener, AdEventListener {
config k;
boolean m;
boolean n;
com.eugene.hymnesetlouanges.c o;
Bundle p;
ListView q;
private ListView s;
ArrayList t;
boolean l = false;
boolean r = false;
class a implements SearchManager.OnCancelListener {
a() {
}
@Override
public void onCancel() {
SearchableActivity searchableActivity = SearchableActivity.this;
searchableActivity.b = false;
searchableActivity.setResult(0);
}
}
class b implements SearchManager.OnDismissListener {
b() {
}
@Override
public void onDismiss() {
SearchableActivity.this.c = false;
}
}
class c implements AdapterView.OnItemClickListener {
c() {
}
@Override
public void onItemClick(AdapterView adapterView, View view, int i, long j) {
SearchableActivity searchableActivity = SearchableActivity.this;
ArrayList arrayList = searchableActivity.t;
if (arrayList != null) {
searchableActivity.f(((g) arrayList.get(i)).d);
}
}
}
class d extends RewardedAdLoadCallback {
final Context b;
class a extends FullScreenContentCallback {
a() {
}
@Override
public void onAdDismissedFullScreenContent() {
SearchableActivity searchableActivity = SearchableActivity.this;
if (searchableActivity.r) {
searchableActivity.abrir_secc(searchableActivity.e);
}
}
@Override
public void onAdFailedToShowFullScreenContent(AdError adError) {
SearchableActivity searchableActivity = SearchableActivity.this;
searchableActivity.abrir_secc(searchableActivity.e);
}
@Override
public void onAdShowedFullScreenContent() {
}
}
class b implements OnUserEarnedRewardListener {
b() {
}
@Override
public void onUserEarnedReward(RewardItem rewardItem) {
d dVar = d.this;
SearchableActivity.this.r = true;
config.i1(dVar.b);
}
}
d(Context context) {
this.b = context;
}
@Override
public void onAdLoaded(RewardedAd rewardedAd) {
SearchableActivity.this.f.cancel();
rewardedAd.setFullScreenContentCallback(new a());
rewardedAd.show((Activity) this.b, new b());
}
@Override
public void onAdFailedToLoad(LoadAdError loadAdError) {
SearchableActivity searchableActivity = SearchableActivity.this;
if (searchableActivity.k.f(this.b, searchableActivity.h)) {
return;
}
SearchableActivity.this.f.cancel();
SearchableActivity searchableActivity2 = SearchableActivity.this;
searchableActivity2.abrir_secc(searchableActivity2.e);
}
}
class e implements AdDisplayListener {
e() {
}
public void adClicked(Ad ad) {
}
public void adDisplayed(Ad ad) {
}
public void adHidden(Ad ad) {
SearchableActivity searchableActivity = SearchableActivity.this;
if (searchableActivity.r) {
searchableActivity.abrir_secc(searchableActivity.e);
}
}
public void adNotDisplayed(Ad ad) {
}
}
public class f extends ArrayAdapter {
private ArrayList a;
class a {
TextView a;
TextView b;
ImageView c;
a() {
}
}
public f(Context context, int i, ArrayList arrayList) {
super(context, i, arrayList);
this.a = arrayList;
}
@Override
public View getView(int i, View view, ViewGroup viewGroup) {
a aVar;
if (view == null) {
view = SearchableActivity.this.getLayoutInflater().inflate(2131558701, (ViewGroup) null);
aVar = new a();
aVar.c = (ImageView) view.findViewById(2131362470);
aVar.a = (TextView) view.findViewById(2131363512);
aVar.b = (TextView) view.findViewById(2131363442);
view.setTag(aVar);
} else {
aVar = (a) view.getTag();
}
if (SearchableActivity.this.m) {
aVar.c.setVisibility(0);
if (((g) this.a.get(i)).a) {
try {
aVar.c.setImageBitmap(SearchableActivity.this.k.Z1[((g) this.a.get(i)).d].N0);
} catch (Exception | OutOfMemoryError unused) {
}
} else {
aVar.c.setImageBitmap(null);
}
} else {
aVar.c.setVisibility(8);
}
if (SearchableActivity.this.getResources().getBoolean(2131034118)) {
aVar.a.setTextDirection(4);
aVar.b.setTextDirection(4);
}
if (SearchableActivity.this.k.e1) {
aVar.a.setText(((g) this.a.get(i)).b);
}
SearchableActivity searchableActivity = SearchableActivity.this;
if (!searchableActivity.n) {
aVar.b.setVisibility(8);
} else if (searchableActivity.k.e1) {
aVar.b.setText(((g) this.a.get(i)).c);
aVar.b.setVisibility(0);
} else {
aVar.a.setText(((g) this.a.get(i)).c);
aVar.b.setVisibility(8);
}
return view;
}
}
private class g {
public boolean a;
public String b;
public String c;
public int d;
private g() {
this.a = false;
}
}
private void c(Context context) {
this.g = new d(context);
}
private void d(android.content.Intent r12) {
throw new UnsupportedOperationException("Method not decompiled: com.eugene.hymnesetlouanges.SearchableActivity.d(android.content.Intent):void");
}
public void f(int i) {
String str;
String str2;
String str3;
String str4;
String str5;
String str6;
String str7;
View view = new View(this);
view.setId(i);
view.setTag(2131361812, Integer.valueOf(i));
String str8 = this.k.f60q4;
if ((str8 == null || str8.equals("")) && (((str = this.k.d3) == null || str.equals("")) && (((str2 = this.k.f58p4) == null || str2.equals("")) && (((str3 = this.k.f66t4) == null || str3.equals("")) && (((str4 = this.k.f68u4) == null || str4.equals("")) && (((str5 = this.k.J4) == null || str5.equals("")) && (((str6 = this.k.f70v4) == null || str6.equals("")) && ((str7 = this.k.f72w4) == null || str7.equals(""))))))))) {
b(i);
return;
}
String str9 = this.k.f60q4;
if (str9 != null && !str9.equals("")) {
this.h = new RewardedVideo(this, this.k.f60q4);
}
String str10 = this.k.f58p4;
if (str10 != null) {
str10.equals("");
}
String str11 = this.k.f66t4;
if (str11 != null && !str11.equals("")) {
this.i = new RewardedVideoAd(this, this.k.f66t4);
}
String str12 = this.k.f68u4;
if (str12 != null && !str12.equals("")) {
this.j = new StartAppAd(this);
}
ProgressDialog progressDialog = new ProgressDialog(this);
this.f = progressDialog;
this.e = view;
if (this.k.j1(this, view, this.a, progressDialog, this.g, this.h, this.i, this.j, view)) {
return;
}
b(i);
}
@Override
public void abrir_secc(android.view.View r5) {
throw new UnsupportedOperationException("Method not decompiled: com.eugene.hymnesetlouanges.SearchableActivity.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();
}
public void b(int i) {
k C = this.k.C(Integer.valueOf(i), this);
this.b = true;
Intent intent = new Intent();
intent.putExtra("finalizar", C.b);
setResult(-1, intent);
if (this.k.T4 != 2) {
C.a.putExtra("es_root", true);
}
startActivity(C.a);
finish();
}
void e() {
int u0 = this.k.u0(this);
int i = this.k.T4;
int i2 = 0;
if (i == 1) {
ListView listView = (ListView) findViewById(2131362584);
this.q = listView;
this.k.s(listView);
} else if (i == 0) {
int i3 = 0;
int i4 = 0;
while (true) {
m[] mVarArr = this.k.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.k.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.k;
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 onBackPressed() {
if (!this.d || this.l || !this.k.N5) {
super.onBackPressed();
} else {
this.l = true;
config.t(this);
}
}
@Override
public void onClick(View view) {
String str;
String str2;
String str3;
String str4;
String str5;
String str6;
String str7;
String str8 = this.k.f60q4;
if ((str8 == null || str8.equals("")) && (((str = this.k.d3) == null || str.equals("")) && (((str2 = this.k.f58p4) == null || str2.equals("")) && (((str3 = this.k.f66t4) == null || str3.equals("")) && (((str4 = this.k.f68u4) == null || str4.equals("")) && (((str5 = this.k.J4) == null || str5.equals("")) && (((str6 = this.k.f70v4) == null || str6.equals("")) && ((str7 = this.k.f72w4) == null || str7.equals(""))))))))) {
abrir_secc(view);
return;
}
String str9 = this.k.f60q4;
if (str9 != null && !str9.equals("")) {
this.h = new RewardedVideo(this, this.k.f60q4);
}
String str10 = this.k.f58p4;
if (str10 != null) {
str10.equals("");
}
String str11 = this.k.f66t4;
if (str11 != null && !str11.equals("")) {
this.i = new RewardedVideoAd(this, this.k.f66t4);
}
String str12 = this.k.f68u4;
if (str12 != null && !str12.equals("")) {
this.j = new StartAppAd(this);
}
ProgressDialog progressDialog = new ProgressDialog(this);
this.f = progressDialog;
this.e = view;
if (this.k.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) {
config configVar = (config) getApplicationContext();
this.k = configVar;
if (configVar.l1 == null) {
configVar.f1();
}
c(this);
this.p = getIntent().getExtras();
config configVar2 = this.k;
if (configVar2.T4 == 2) {
this.d = false;
} else {
this.d = true;
}
this.a = config.h(configVar2.n1, configVar2.w1);
if (!config.J("#" + this.k.n1)) {
setTheme(2131952516);
}
super.onCreate(bundle);
setContentView(2131558702);
e();
this.k.V0(this, false);
SearchManager searchManager = (SearchManager) getSystemService("search");
searchManager.setOnCancelListener(new a());
searchManager.setOnDismissListener(new b());
config configVar3 = this.k;
Bundle bundle2 = this.p;
boolean z = bundle2 != null && bundle2.containsKey("ad_entrar");
Bundle bundle3 = this.p;
configVar3.q1(this, z, bundle3 != null && bundle3.containsKey("fb_entrar"));
this.o = this.k.F0(this, false);
this.m = false;
this.n = false;
config configVar4 = this.k;
if (configVar4.g1 || configVar4.f1) {
for (m mVar : configVar4.Z1) {
if (mVar.J) {
config configVar5 = this.k;
if (configVar5.g1 && (mVar.O0 || mVar.N0 != null)) {
this.m = true;
}
if (configVar5.f1 && !mVar.c.equals("")) {
this.n = true;
}
config configVar6 = this.k;
boolean z2 = configVar6.g1;
if (z2) {
if (this.m) {
if (configVar6.f1) {
if (this.n) {
break;
}
} else {
break;
}
}
}
if (configVar6.f1) {
if (this.n) {
if (!z2 || this.m) {
break;
}
} else {
continue;
}
} else {
continue;
}
}
}
}
this.s = (ListView) findViewById(2131362598);
if (!this.k.n1.equals("") && !this.k.o1.equals("")) {
findViewById(2131362685).setBackgroundDrawable(new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[]{Color.parseColor("#" + this.k.n1), Color.parseColor("#" + this.k.o1)}));
}
this.s.setOnItemClickListener(new c());
d(getIntent());
}
@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.k.J3 != 0 && (cVar3 = this.o) != null && (adView2 = cVar3.a) != null) {
adView2.destroy();
}
if (this.k.J3 != 0 && (cVar2 = this.o) != null && (adView = cVar2.b) != null) {
adView.destroy();
}
if (this.k.J3 != 0 && (cVar = this.o) != 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
protected void onNewIntent(Intent intent) {
this.b = false;
setResult(0);
setIntent(intent);
d(intent);
}
@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.k.J3 != 0 && (cVar2 = this.o) != null && (adView = cVar2.a) != null) {
adView.pause();
}
if (this.k.J3 != 0 && (cVar = this.o) != 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 e());
}
@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.k.J3 != 0 && (cVar2 = this.o) != null && (adView = cVar2.a) != null) {
adView.resume();
}
if (this.k.J3 == 0 || (cVar = this.o) == 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);
}
}