正在查看: Cantique de Louanges v12 应用的 notifs.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Cantique de Louanges v12 应用的 notifs.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.eugene.hymnesetlouanges;
import android.R;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.NotificationManager;
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.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
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.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.net.URISyntaxException;
import java.text.DateFormat;
import java.util.Calendar;
public class notifs extends Activity_ext_class implements com.eugene.hymnesetlouanges.a, View.OnClickListener, RewardedVideoAdListener, OnAdLoaded, OnAdClosed, OnVideoEnded, OnAdError, VideoListener, AdEventListener {
private SharedPreferences k;
private config l;
private boolean n;
private Bundle o;
private com.eugene.hymnesetlouanges.c p;
ListView r;
private boolean m = false;
boolean q = false;
class a implements SearchManager.OnCancelListener {
a() {
}
@Override
public void onCancel() {
notifs notifsVar = notifs.this;
notifsVar.b = false;
notifsVar.setResult(0);
}
}
class b implements SearchManager.OnDismissListener {
b() {
}
@Override
public void onDismiss() {
notifs.this.c = false;
}
}
class c implements DialogInterface.OnClickListener {
c() {
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
config.H(notifs.this);
notifs.this.e();
config.N0(notifs.this);
}
}
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("#" + notifs.this.a));
this.a.getButton(-2).setTextColor(Color.parseColor("#" + notifs.this.a));
}
}
class e extends RewardedAdLoadCallback {
final Context b;
class a extends FullScreenContentCallback {
a() {
}
@Override
public void onAdDismissedFullScreenContent() {
notifs notifsVar = notifs.this;
if (notifsVar.q) {
notifsVar.abrir_secc(notifsVar.e);
}
}
@Override
public void onAdFailedToShowFullScreenContent(AdError adError) {
notifs notifsVar = notifs.this;
notifsVar.abrir_secc(notifsVar.e);
}
@Override
public void onAdShowedFullScreenContent() {
}
}
class b implements OnUserEarnedRewardListener {
b() {
}
@Override
public void onUserEarnedReward(RewardItem rewardItem) {
e eVar = e.this;
notifs.this.q = true;
config.i1(eVar.b);
}
}
e(Context context) {
this.b = context;
}
@Override
public void onAdLoaded(RewardedAd rewardedAd) {
notifs.this.f.cancel();
rewardedAd.setFullScreenContentCallback(new a());
rewardedAd.show((Activity) this.b, new b());
}
@Override
public void onAdFailedToLoad(LoadAdError loadAdError) {
if (notifs.this.l.f(this.b, notifs.this.h)) {
return;
}
notifs.this.f.cancel();
notifs notifsVar = notifs.this;
notifsVar.abrir_secc(notifsVar.e);
}
}
class f implements AdDisplayListener {
f() {
}
public void adClicked(Ad ad) {
}
public void adDisplayed(Ad ad) {
}
public void adHidden(Ad ad) {
notifs notifsVar = notifs.this;
if (notifsVar.q) {
notifsVar.abrir_secc(notifsVar.e);
}
}
public void adNotDisplayed(Ad ad) {
}
}
private void c(Context context) {
this.g = new e(context);
}
public void e() {
LinearLayout linearLayout = (LinearLayout) findViewById(2131362702);
linearLayout.removeAllViews();
LayoutInflater layoutInflater = (LayoutInflater) getSystemService("layout_inflater");
?? r52 = 0;
int i = this.k.getInt("id_ultnotif", 0);
int i2 = 0;
while (i > 0) {
if (this.k.contains("notif_" + i + "_title")) {
int i3 = config.f13d6;
int i4 = config.f19i6;
if (!this.n) {
i3 = config.f16f6;
i4 = config.f18h6;
}
LinearLayout linearLayout2 = (LinearLayout) layoutInflater.inflate(2131558655, (ViewGroup) null);
TextView textView = (TextView) linearLayout2.findViewById(2131363513);
textView.setText(this.k.getString("notif_" + i + "_title", ""));
TextView textView2 = (TextView) linearLayout2.findViewById(2131363511);
textView2.setText(this.k.getString("notif_" + i + "_text", ""));
textView.setTextColor(i3);
textView2.setTextColor(i3);
linearLayout2.findViewById(2131363541).setBackgroundColor(i4);
if (!this.k.getBoolean("notif_" + i + "_leida", r52)) {
linearLayout2.findViewById(2131363495).setVisibility(r52);
}
DateFormat dateFormat = android.text.format.DateFormat.getDateFormat(this);
DateFormat timeFormat = android.text.format.DateFormat.getTimeFormat(this);
TextView textView3 = (TextView) linearLayout2.findViewById(2131363452);
if (System.currentTimeMillis() - this.k.getLong("notif_" + i + "_fcrea", 0L) < 300000) {
textView3.setText(getResources().getString(2131886121));
} else {
Calendar calendar = Calendar.getInstance();
Calendar calendar2 = Calendar.getInstance();
calendar2.setTimeInMillis(this.k.getLong("notif_" + i + "_fcrea", 0L));
if (calendar2.get(1) == calendar.get(1) && calendar2.get(6) == calendar.get(6)) {
textView3.setText(getResources().getString(2131886535) + " " + timeFormat.format(Long.valueOf(calendar2.getTimeInMillis())));
} else {
textView3.setText(dateFormat.format(Long.valueOf(calendar2.getTimeInMillis())) + " " + timeFormat.format(Long.valueOf(calendar2.getTimeInMillis())));
}
}
linearLayout2.setTag(2131362428, Integer.valueOf(i));
linearLayout2.setOnClickListener(this);
linearLayout.addView(linearLayout2);
i2++;
if (i2 > 99) {
break;
}
}
i--;
r52 = 0;
}
if (i2 == 0) {
findViewById(2131363502).setVisibility(0);
}
}
@Override
public void abrir_secc(android.view.View r5) {
throw new UnsupportedOperationException("Method not decompiled: com.eugene.hymnesetlouanges.notifs.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 d() {
int u0 = this.l.u0(this);
int i = this.l.T4;
int i2 = 0;
if (i == 1) {
ListView listView = (ListView) findViewById(2131362584);
this.r = listView;
this.l.s(listView);
} else if (i == 0) {
int i3 = 0;
int i4 = 0;
while (true) {
m[] mVarArr = this.l.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.l.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.l;
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.q) {
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.m || !this.l.N5) {
super.onBackPressed();
} else {
this.m = true;
config.t(this);
}
}
@Override
public void onClick(View view) {
String str;
String str2;
String str3;
String str4;
String str5;
String str6;
String str7;
Intent intent = null;
boolean z = false;
if (view.getId() == 2131362060) {
if (this.k.getInt("id_ultnotif", 0) == 0) {
return;
}
AlertDialog create = new AlertDialog.Builder(this).setNegativeButton(2131886227, (DialogInterface.OnClickListener) null).setPositiveButton(2131886114, new c()).setMessage(2131886355).create();
if (!this.a.equals("")) {
create.setOnShowListener(new d(create));
}
create.show();
try {
((TextView) create.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
return;
} catch (Exception unused) {
return;
}
}
if (view.getId() == 2131362059) {
startActivityForResult(new Intent(this, (Class<?>) notifs_cats.class), 0);
return;
}
if (view.getTag(2131362428) != null) {
int i = this.k.getInt("notif_" + view.getTag(2131362428) + "_numnotif", 0);
if (i != 0) {
((NotificationManager) getSystemService("notification")).cancel(i);
}
SharedPreferences.Editor edit = this.k.edit();
edit.putBoolean("notif_" + view.getTag(2131362428) + "_leida", true);
edit.commit();
config.e(this);
String string = this.k.getString("notif_" + view.getTag(2131362428) + "_intent", "");
if (string.equals("")) {
return;
}
try {
intent = Intent.parseUri(string, 0);
z = true;
} catch (URISyntaxException unused2) {
}
if (z) {
intent.putExtra("directo", true);
startActivity(intent);
Intent intent2 = new Intent();
intent2.putExtra("finalizar", true);
intent2.putExtra("finalizar_app", true);
config.f25o6 = true;
this.b = true;
setResult(-1, intent2);
return;
}
return;
}
String str8 = this.l.f60q4;
if ((str8 == null || str8.equals("")) && (((str = this.l.d3) == null || str.equals("")) && (((str2 = this.l.f58p4) == null || str2.equals("")) && (((str3 = this.l.f66t4) == null || str3.equals("")) && (((str4 = this.l.f68u4) == null || str4.equals("")) && (((str5 = this.l.J4) == null || str5.equals("")) && (((str6 = this.l.f70v4) == null || str6.equals("")) && ((str7 = this.l.f72w4) == null || str7.equals(""))))))))) {
abrir_secc(view);
return;
}
String str9 = this.l.f60q4;
if (str9 != null && !str9.equals("")) {
this.h = new RewardedVideo(this, this.l.f60q4);
}
String str10 = this.l.f58p4;
if (str10 != null) {
str10.equals("");
}
String str11 = this.l.f66t4;
if (str11 != null && !str11.equals("")) {
this.i = new RewardedVideoAd(this, this.l.f66t4);
}
String str12 = this.l.f68u4;
if (str12 != null && !str12.equals("")) {
this.j = new StartAppAd(this);
}
ProgressDialog progressDialog = new ProgressDialog(this);
this.f = progressDialog;
this.e = view;
if (this.l.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);
d();
((LinearLayout) findViewById(2131362610)).removeAllViews();
com.eugene.hymnesetlouanges.c cVar = this.p;
if (cVar != null && (adView2 = cVar.a) != null) {
try {
adView2.destroy();
} catch (Exception unused) {
}
}
com.eugene.hymnesetlouanges.c cVar2 = this.p;
if (cVar2 != null && (adView = cVar2.b) != null) {
try {
adView.destroy();
} catch (Exception unused2) {
}
}
com.eugene.hymnesetlouanges.c cVar3 = this.p;
if (cVar3 != null && (bannerAd = cVar3.e) != null) {
try {
bannerAd.destroy();
} catch (Exception unused3) {
}
}
this.p = this.l.F0(this, false);
}
@Override
public void onCreate(Bundle bundle) {
config configVar = (config) getApplicationContext();
this.l = configVar;
if (configVar.l1 == null) {
configVar.f1();
}
c(this);
config configVar2 = this.l;
this.a = config.h(configVar2.n1, configVar2.w1);
if (!config.J("#" + this.l.n1)) {
setTheme(2131952516);
}
super.onCreate(bundle);
setContentView(2131558673);
d();
this.l.V0(this, false);
SearchManager searchManager = (SearchManager) getSystemService("search");
searchManager.setOnCancelListener(new a());
searchManager.setOnDismissListener(new b());
this.l.q1(this, false, false);
this.p = this.l.F0(this, false);
Bundle extras = getIntent().getExtras();
this.o = extras;
if (bundle == null) {
this.d = extras != null && extras.containsKey("es_root") && this.o.getBoolean("es_root", false);
} else {
this.d = bundle.containsKey("es_root") && bundle.getBoolean("es_root", false);
}
this.k = getSharedPreferences("sh", 0);
this.n = config.J("#" + this.l.n1);
if (!this.l.n1.equals("")) {
findViewById(2131362685).setBackgroundDrawable(new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[]{Color.parseColor("#" + this.l.n1), Color.parseColor("#" + this.l.o1)}));
}
int i = !this.n ? -1 : -16777216;
((TextView) findViewById(2131363483)).setTextColor(i);
findViewById(2131363535).setBackgroundColor(i);
((TextView) findViewById(2131363502)).setTextColor(i);
if (this.n) {
((ImageView) findViewById(2131362060)).setImageDrawable(getResources().getDrawable(2131231779));
((ImageView) findViewById(2131362059)).setImageDrawable(getResources().getDrawable(2131231741));
} else {
((ImageView) findViewById(2131362060)).setImageDrawable(getResources().getDrawable(2131231780));
((ImageView) findViewById(2131362059)).setImageDrawable(getResources().getDrawable(2131231742));
}
findViewById(2131362060).setOnClickListener(this);
if (this.l.W5) {
findViewById(2131362059).setOnClickListener(this);
findViewById(2131362059).setVisibility(0);
}
e();
}
@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.l.J3 != 0 && (cVar3 = this.p) != null && (adView2 = cVar3.a) != null) {
adView2.destroy();
}
if (this.l.J3 != 0 && (cVar2 = this.p) != null && (adView = cVar2.b) != null) {
adView.destroy();
}
if (this.l.J3 != 0 && (cVar = this.p) != 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.l.J3 != 0 && (cVar2 = this.p) != null && (adView = cVar2.a) != null) {
adView.pause();
}
if (this.l.J3 != 0 && (cVar = this.p) != 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 f());
}
@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.l.J3 != 0 && (cVar2 = this.p) != null && (adView = cVar2.a) != null) {
adView.resume();
}
if (this.l.J3 == 0 || (cVar = this.p) == null || (bannerAd = cVar.e) == null) {
return;
}
bannerAd.resume();
}
@Override
public void onRewardedVideoClosed() {
if (this.q) {
abrir_secc(this.e);
}
}
@Override
public void onRewardedVideoCompleted() {
this.q = 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.q = true;
config.i1(this);
}
public void videoEnded() {
this.q = true;
config.i1(this);
}
}