正在查看: Cantique de Louanges v12 应用的 chat.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Cantique de Louanges v12 应用的 chat.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.Point;
import android.graphics.PorterDuff;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.Display;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.ProgressBar;
import android.widget.ScrollView;
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.URLEncoder;
public class chat extends Activity_ext_class implements com.eugene.hymnesetlouanges.a, View.OnKeyListener, View.OnClickListener, SharedPreferences.OnSharedPreferenceChangeListener, RewardedVideoAdListener, OnAdLoaded, OnAdClosed, OnVideoEnded, OnAdError, VideoListener, AdEventListener {
private long k;
private int l;
private String m;
private SharedPreferences n;
private config o;
Bundle q;
com.eugene.hymnesetlouanges.c r;
ListView t;
boolean p = false;
boolean s = false;
class a implements SearchManager.OnCancelListener {
a() {
}
@Override
public void onCancel() {
chat chatVar = chat.this;
chatVar.b = false;
chatVar.setResult(0);
}
}
class b implements SearchManager.OnDismissListener {
b() {
}
@Override
public void onDismiss() {
chat.this.c = false;
}
}
class c implements DialogInterface.OnClickListener {
final EditText a;
class a implements DialogInterface.OnShowListener {
final AlertDialog a;
a(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onShow(DialogInterface dialogInterface) {
this.a.getButton(-1).setTextColor(Color.parseColor("#" + chat.this.a));
}
}
c(EditText editText) {
this.a = editText;
}
@Override
public void onClick(DialogInterface dialogInterface, int i) {
String obj = this.a.getText().toString();
if (obj.equals("")) {
AlertDialog create = new AlertDialog.Builder(chat.this).setPositiveButton(chat.this.getString(2131886114), (DialogInterface.OnClickListener) null).setMessage(2131886499).create();
if (!chat.this.a.equals("")) {
create.setOnShowListener(new a(create));
}
create.show();
try {
((TextView) create.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
return;
} catch (Exception unused) {
return;
}
}
SharedPreferences.Editor edit = chat.this.n.edit();
edit.putString("nombre", obj);
edit.commit();
((EditText) chat.this.findViewById(2131362088)).setTextColor(-7829368);
chat.this.findViewById(2131363033).setVisibility(0);
chat chatVar = chat.this;
chatVar.new h(chatVar.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("#" + chat.this.a));
this.a.getButton(-2).setTextColor(Color.parseColor("#" + chat.this.a));
}
}
class e implements Runnable {
final SharedPreferences a;
class a implements Runnable {
a() {
}
@Override
public void run() {
((ScrollView) chat.this.findViewById(2131363276)).fullScroll(130);
}
}
e(SharedPreferences sharedPreferences) {
this.a = sharedPreferences;
}
@Override
public void run() {
LinearLayout linearLayout = (LinearLayout) ((LayoutInflater) chat.this.getSystemService("layout_inflater")).inflate(2131558537, (ViewGroup) null);
TextView textView = (TextView) linearLayout.findViewById(2131362866);
textView.setText(this.a.getString("f_frase", "").replace("XYARROBAYX", "@"));
if (this.a.getString("f_id", "").equals(chat.this.k + "")) {
textView.setBackgroundResource(2131231769);
} else {
textView.setBackgroundResource(2131231770);
}
LinearLayout linearLayout2 = (LinearLayout) chat.this.findViewById(2131362701);
linearLayout2.addView(linearLayout);
ScrollView scrollView = (ScrollView) chat.this.findViewById(2131363276);
if (linearLayout2.getMeasuredHeight() <= scrollView.getScrollY() + scrollView.getHeight()) {
scrollView.post(new a());
}
}
}
class f extends RewardedAdLoadCallback {
final Context b;
class a extends FullScreenContentCallback {
a() {
}
@Override
public void onAdDismissedFullScreenContent() {
chat chatVar = chat.this;
if (chatVar.s) {
chatVar.abrir_secc(chatVar.e);
}
}
@Override
public void onAdFailedToShowFullScreenContent(AdError adError) {
chat chatVar = chat.this;
chatVar.abrir_secc(chatVar.e);
}
@Override
public void onAdShowedFullScreenContent() {
}
}
class b implements OnUserEarnedRewardListener {
b() {
}
@Override
public void onUserEarnedReward(RewardItem rewardItem) {
f fVar = f.this;
chat.this.s = true;
config.i1(fVar.b);
}
}
f(Context context) {
this.b = context;
}
@Override
public void onAdLoaded(RewardedAd rewardedAd) {
chat.this.f.cancel();
rewardedAd.setFullScreenContentCallback(new a());
rewardedAd.show((Activity) this.b, new b());
}
@Override
public void onAdFailedToLoad(LoadAdError loadAdError) {
if (chat.this.o.f(this.b, chat.this.h)) {
return;
}
chat.this.f.cancel();
chat chatVar = chat.this;
chatVar.abrir_secc(chatVar.e);
}
}
class g implements AdDisplayListener {
g() {
}
public void adClicked(Ad ad) {
}
public void adDisplayed(Ad ad) {
}
public void adHidden(Ad ad) {
chat chatVar = chat.this;
if (chatVar.s) {
chatVar.abrir_secc(chatVar.e);
}
}
public void adNotDisplayed(Ad ad) {
}
}
private class h extends AsyncTask {
String a;
class a implements DialogInterface.OnShowListener {
final AlertDialog a;
a(AlertDialog alertDialog) {
this.a = alertDialog;
}
@Override
public void onShow(DialogInterface dialogInterface) {
this.a.getButton(-1).setTextColor(Color.parseColor("#" + chat.this.a));
}
}
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("#" + chat.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("#" + chat.this.a));
}
}
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("#" + chat.this.a));
}
}
public h(String str) {
this.a = str;
}
@Override
public String doInBackground(String... strArr) {
try {
yf.b bVar = new yf.b();
yf.c.h(bVar, 10000);
yf.c.i(bVar, 20000);
rf.h hVar = new rf.h(bVar);
bf.e eVar = new bf.e(config.f23m6 + "/srv/enviarmensaje.php");
nf.g gVar = new nf.g(nf.d.b);
gVar.a("idusu", new of.f(chat.this.k + ""));
gVar.a("idapp", new of.f("3014518"));
gVar.a("nombre", new of.f(URLEncoder.encode(chat.this.n.getString("nombre", ""), "UTF-8")));
gVar.a("m", new of.f(URLEncoder.encode(this.a, "UTF-8")));
eVar.a(gVar);
eVar.x("User-Agent", "Android Vinebre Software");
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(hVar.a(eVar).c().j(), "UTF-8"));
StringBuilder sb = new StringBuilder();
while (true) {
String readLine = bufferedReader.readLine();
if (readLine == null) {
return sb.toString();
}
sb.append(readLine);
}
} catch (Exception unused) {
return "ANDROID:KO";
}
}
@Override
public void onPostExecute(String str) {
AlertDialog.Builder builder = new AlertDialog.Builder(chat.this);
try {
chat.this.findViewById(2131363033).setVisibility(8);
((EditText) chat.this.findViewById(2131362088)).setTextColor(-16777216);
} catch (Exception unused) {
}
try {
if (str.indexOf("ANDROID:OK") == -1 && str.indexOf("ANDROID:KO") == -1) {
AlertDialog create = builder.setCancelable(false).setPositiveButton(chat.this.getString(2131886114), (DialogInterface.OnClickListener) null).setMessage(2131886423).create();
if (!chat.this.a.equals("")) {
create.setOnShowListener(new d(create));
}
create.show();
((TextView) create.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
} else if (str.indexOf("ANDROID:OK") != -1) {
((EditText) chat.this.findViewById(2131362088)).setText("");
SharedPreferences.Editor edit = chat.this.n.edit();
edit.putString("conv", chat.this.n.getString("conv", "") + "@" + chat.this.k + "@" + this.a);
StringBuilder sb = new StringBuilder();
sb.append(chat.this.k);
sb.append("");
edit.putString("f_id", sb.toString());
edit.putString("f_frase", this.a);
edit.putString("f_idfrase", config.f24n6 + "");
config.f24n6 = config.f24n6 + 1;
edit.commit();
if (!chat.this.n.getBoolean("primer_msg_chat", true)) {
return;
}
edit.putBoolean("primer_msg_chat", false);
edit.commit();
AlertDialog create2 = builder.setCancelable(false).setPositiveButton(chat.this.getString(2131886114), (DialogInterface.OnClickListener) null).setMessage(2131886714).create();
if (!chat.this.a.equals("")) {
create2.setOnShowListener(new a(create2));
}
create2.show();
((TextView) create2.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
} else if (str.indexOf("ANDROID:KO MOTIVO:NOGCM") != -1) {
AlertDialog create3 = builder.setCancelable(false).setPositiveButton(chat.this.getString(2131886114), (DialogInterface.OnClickListener) null).setMessage(2131886672).create();
if (!chat.this.a.equals("")) {
create3.setOnShowListener(new b(create3));
}
create3.show();
((TextView) create3.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
} else {
AlertDialog create4 = builder.setCancelable(false).setPositiveButton(chat.this.getString(2131886114), (DialogInterface.OnClickListener) null).setMessage(2131886423).create();
if (!chat.this.a.equals("")) {
create4.setOnShowListener(new c(create4));
}
create4.show();
((TextView) create4.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
}
} catch (Exception unused2) {
}
}
}
private void e(Context context) {
this.g = new f(context);
}
private void f(boolean z) {
String obj = ((EditText) findViewById(2131362088)).getText().toString();
this.m = obj;
String trim = obj.trim();
this.m = trim;
if (trim.equals("")) {
return;
}
if (z && this.l < 600) {
((InputMethodManager) getSystemService("input_method")).hideSoftInputFromWindow(((EditText) findViewById(2131362088)).getWindowToken(), 0);
}
if (!this.n.getString("nombre", "").equals("")) {
((EditText) findViewById(2131362088)).setTextColor(-7829368);
findViewById(2131363033).setVisibility(0);
new h(this.m).execute(new String[0]);
return;
}
EditText editText = new EditText(this);
editText.setSingleLine();
editText.setInputType(8193);
if (!this.a.equals("")) {
config.G(editText, Boolean.valueOf(!config.J("#" + this.o.u1)), this.a);
}
AlertDialog create = new AlertDialog.Builder(this).setNegativeButton(getString(2131886227), (DialogInterface.OnClickListener) null).setPositiveButton(getString(2131886114), new c(editText)).setMessage(2131886711).setView(editText).create();
if (!this.a.equals("")) {
create.setOnShowListener(new d(create));
}
create.show();
try {
((TextView) create.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
} catch (Exception unused) {
}
}
@Override
public void abrir_secc(android.view.View r5) {
throw new UnsupportedOperationException("Method not decompiled: com.eugene.hymnesetlouanges.chat.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 g() {
SharedPreferences.Editor edit = this.n.edit();
edit.putBoolean("activa", false);
edit.commit();
this.n.unregisterOnSharedPreferenceChangeListener(this);
}
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.t = 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.s) {
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.p || !this.o.N5) {
super.onBackPressed();
} else {
this.p = 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.getId() == 2131362501) {
f(false);
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 onCreate(Bundle bundle) {
int indexOf;
int length;
config configVar = (config) getApplicationContext();
this.o = configVar;
if (configVar.l1 == null) {
configVar.f1();
}
e(this);
config configVar2 = this.o;
this.a = config.h(configVar2.u1, configVar2.D1);
if (!config.J("#" + this.o.u1)) {
setTheme(2131952516);
}
Bundle extras = getIntent().getExtras();
this.q = extras;
if (bundle == null) {
this.d = extras != null && extras.containsKey("es_root") && this.q.getBoolean("es_root", false);
} else {
this.d = bundle.containsKey("es_root") && bundle.getBoolean("es_root", false);
}
super.onCreate(bundle);
setContentView(2131558481);
h();
this.o.V0(this, false);
SearchManager searchManager = (SearchManager) getSystemService("search");
searchManager.setOnCancelListener(new a());
searchManager.setOnDismissListener(new b());
if (bundle == null) {
config configVar3 = this.o;
Bundle bundle2 = this.q;
boolean z = bundle2 != null && bundle2.containsKey("ad_entrar");
Bundle bundle3 = this.q;
configVar3.q1(this, z, bundle3 != null && bundle3.containsKey("fb_entrar"));
}
this.r = this.o.F0(this, false);
SharedPreferences sharedPreferences = getSharedPreferences("sh", 0);
this.n = sharedPreferences;
this.k = sharedPreferences.getLong("idusu", 0L);
Display defaultDisplay = getWindowManager().getDefaultDisplay();
Point point = new Point();
defaultDisplay.getSize(point);
this.l = point.y;
if (!this.o.u1.equals("")) {
findViewById(2131362685).setBackgroundDrawable(new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[]{Color.parseColor("#" + this.o.u1), Color.parseColor("#" + this.o.v1)}));
}
if (!this.o.A1.equals("")) {
Drawable drawable = getResources().getDrawable(2131231097);
drawable.setColorFilter(Color.parseColor("#" + this.o.A1), PorterDuff.Mode.MULTIPLY);
((ImageView) findViewById(2131362486)).setImageDrawable(drawable);
}
if (!this.o.y1.equals("")) {
((TextView) findViewById(2131363512)).setTextColor(Color.parseColor("#" + this.o.y1));
}
if (!this.o.z1.equals("")) {
findViewById(2131363538).setBackgroundColor(Color.parseColor("#" + this.o.z1));
}
config.b1((ProgressBar) findViewById(2131363033), this.o.D1);
findViewById(2131362501).setOnClickListener(this);
config.G((EditText) findViewById(2131362088), Boolean.FALSE, this.o.D1);
findViewById(2131362088).setOnKeyListener(this);
if (config.J("#" + this.o.D1)) {
findViewById(2131362477).setVisibility(0);
} else {
findViewById(2131362476).setVisibility(0);
}
Drawable drawable2 = getResources().getDrawable(2131231010);
drawable2.setColorFilter(Color.parseColor("#" + this.o.D1), PorterDuff.Mode.MULTIPLY);
((ImageView) findViewById(2131362501)).setImageDrawable(drawable2);
this.n.registerOnSharedPreferenceChangeListener(this);
String string = this.n.getString("conv", "");
if (string.equals("")) {
return;
}
SharedPreferences.Editor edit = this.n.edit();
edit.putString("f_idfrase", "0");
edit.commit();
for (int i = 0; i != -1; i = indexOf) {
int i2 = i + 1;
int indexOf2 = string.indexOf("@0@", i2);
indexOf = string.indexOf("@" + this.k + "@", i2);
if (indexOf2 != -1 && indexOf != -1) {
indexOf = Math.min(indexOf2, indexOf);
} else if (indexOf2 != -1) {
indexOf = indexOf2;
} else if (indexOf == -1) {
indexOf = -1;
}
if (string.substring(i, i + 3).equals("@0@")) {
edit.putString("f_id", "0");
length = 3;
} else {
edit.putString("f_id", this.k + "");
length = (this.k + "").length() + 2;
}
edit.putString("f_idfrase", config.f24n6 + "");
edit.putString("f_frase", indexOf != -1 ? string.substring(i + length, indexOf) : string.substring(i + length));
edit.commit();
config.f24n6++;
}
}
@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.r) != null && (adView2 = cVar3.a) != null) {
adView2.destroy();
}
if (this.o.J3 != 0 && (cVar2 = this.r) != null && (adView = cVar2.b) != null) {
adView.destroy();
}
if (this.o.J3 != 0 && (cVar = this.r) != 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 boolean onKey(View view, int i, KeyEvent keyEvent) {
if (keyEvent.getAction() != 0 || i != 66) {
return false;
}
f(true);
return true;
}
@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.r) != null && (adView = cVar2.a) != null) {
adView.pause();
}
if (this.o.J3 != 0 && (cVar = this.r) != null && (bannerAd = cVar.e) != null) {
bannerAd.pause();
}
super.onPause();
config.W0(this);
g();
}
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);
SharedPreferences.Editor edit = this.n.edit();
edit.putBoolean("activa", true);
edit.commit();
this.n.registerOnSharedPreferenceChangeListener(this);
if (this.o.J3 != 0 && (cVar2 = this.r) != null && (adView = cVar2.a) != null) {
adView.resume();
}
if (this.o.J3 == 0 || (cVar = this.r) == null || (bannerAd = cVar.e) == null) {
return;
}
bannerAd.resume();
}
@Override
public void onRewardedVideoClosed() {
if (this.s) {
abrir_secc(this.e);
}
}
@Override
public void onRewardedVideoCompleted() {
this.s = 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 onSharedPreferenceChanged(SharedPreferences sharedPreferences, String str) {
if (sharedPreferences.contains("f_idfrase") && str.equals("f_idfrase") && !sharedPreferences.getString("f_idfrase", "0").equals("0")) {
runOnUiThread(new e(sharedPreferences));
}
}
@Override
public void onStop() {
super.onStop();
if (!this.b || this.c) {
return;
}
finish();
}
public void onVideoCompleted() {
this.s = true;
config.i1(this);
}
public void videoEnded() {
this.s = true;
config.i1(this);
}
}