导航菜单

页面标题

页面副标题

Cantique de Louanges v12 - contactar.java 源代码

正在查看: Cantique de Louanges v12 应用的 contactar.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.graphics.Color;
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.View;
import android.widget.EditText;
import android.widget.ImageView;
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.google.android.gms.common.Scopes;
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.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class contactar extends Activity_ext_class implements com.eugene.hymnesetlouanges.a, View.OnClickListener, RewardedVideoAdListener, OnAdLoaded, OnAdClosed, OnVideoEnded, OnAdError, VideoListener, AdEventListener {
    long k;
    int l;
    private ProgressDialog m;
    private String n;
    private String o;
    private String p;
    private String q;
    config s;
    com.eugene.hymnesetlouanges.c t;
    ListView v;
    boolean r = false;
    boolean u = false;

    class a extends RewardedAdLoadCallback {
        final Context b;

        class C0086a extends FullScreenContentCallback {
            C0086a() {
            }

            @Override
            public void onAdDismissedFullScreenContent() {
                contactar contactarVar = contactar.this;
                if (contactarVar.u) {
                    contactarVar.abrir_secc(contactarVar.e);
                }
            }

            @Override
            public void onAdFailedToShowFullScreenContent(AdError adError) {
                contactar contactarVar = contactar.this;
                contactarVar.abrir_secc(contactarVar.e);
            }

            @Override
            public void onAdShowedFullScreenContent() {
            }
        }

        class b implements OnUserEarnedRewardListener {
            b() {
            }

            @Override
            public void onUserEarnedReward(RewardItem rewardItem) {
                a aVar = a.this;
                contactar.this.u = true;
                config.i1(aVar.b);
            }
        }

        a(Context context) {
            this.b = context;
        }

        @Override
        public void onAdLoaded(RewardedAd rewardedAd) {
            contactar.this.f.cancel();
            rewardedAd.setFullScreenContentCallback(new C0086a());
            rewardedAd.show((Activity) this.b, new b());
        }

        @Override
        public void onAdFailedToLoad(LoadAdError loadAdError) {
            contactar contactarVar = contactar.this;
            if (contactarVar.s.f(this.b, contactarVar.h)) {
                return;
            }
            contactar.this.f.cancel();
            contactar contactarVar2 = contactar.this;
            contactarVar2.abrir_secc(contactarVar2.e);
        }
    }

    class b implements AdDisplayListener {
        b() {
        }

        public void adClicked(Ad ad) {
        }

        public void adDisplayed(Ad ad) {
        }

        public void adHidden(Ad ad) {
            contactar contactarVar = contactar.this;
            if (contactarVar.u) {
                contactarVar.abrir_secc(contactarVar.e);
            }
        }

        public void adNotDisplayed(Ad ad) {
        }
    }

    class c implements SearchManager.OnCancelListener {
        c() {
        }

        @Override
        public void onCancel() {
            contactar contactarVar = contactar.this;
            contactarVar.b = false;
            contactarVar.setResult(0);
        }
    }

    class d implements SearchManager.OnDismissListener {
        d() {
        }

        @Override
        public void onDismiss() {
            contactar.this.c = false;
        }
    }

    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("#" + contactar.this.a));
        }
    }

    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("#" + contactar.this.a));
        }
    }

    class g implements DialogInterface.OnShowListener {
        final AlertDialog a;

        g(AlertDialog alertDialog) {
            this.a = alertDialog;
        }

        @Override
        public void onShow(DialogInterface dialogInterface) {
            this.a.getButton(-1).setTextColor(Color.parseColor("#" + contactar.this.a));
        }
    }

    class h implements DialogInterface.OnShowListener {
        final AlertDialog a;

        h(AlertDialog alertDialog) {
            this.a = alertDialog;
        }

        @Override
        public void onShow(DialogInterface dialogInterface) {
            this.a.getButton(-1).setTextColor(Color.parseColor("#" + contactar.this.a));
        }
    }

    class i implements DialogInterface.OnShowListener {
        final AlertDialog a;

        i(AlertDialog alertDialog) {
            this.a = alertDialog;
        }

        @Override
        public void onShow(DialogInterface dialogInterface) {
            this.a.getButton(-1).setTextColor(Color.parseColor("#" + contactar.this.a));
        }
    }

    class j implements DialogInterface.OnShowListener {
        final AlertDialog a;

        j(AlertDialog alertDialog) {
            this.a = alertDialog;
        }

        @Override
        public void onShow(DialogInterface dialogInterface) {
            this.a.getButton(-1).setTextColor(Color.parseColor("#" + contactar.this.a));
        }
    }

    class k implements DialogInterface.OnShowListener {
        k() {
        }

        @Override
        public void onShow(DialogInterface dialogInterface) {
            config.b1((ProgressBar) contactar.this.m.findViewById(R.id.progress), contactar.this.s.D1);
        }
    }

    private class l extends AsyncTask {

        class a implements DialogInterface.OnClickListener {
            a() {
            }

            @Override
            public void onClick(DialogInterface dialogInterface, int i) {
                if (contactar.this.d) {
                    boolean z = false;
                    int i2 = 0;
                    while (!z) {
                        m[] mVarArr = contactar.this.s.Z1;
                        if (i2 >= mVarArr.length) {
                            break;
                        } else if (mVarArr[i2].B) {
                            i2++;
                        } else {
                            z = true;
                        }
                    }
                    com.eugene.hymnesetlouanges.k C = contactar.this.s.C(Integer.valueOf(z ? i2 : 0), contactar.this);
                    C.a.putExtra("es_root", true);
                    contactar.this.startActivity(C.a);
                }
                contactar.this.finish();
            }
        }

        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("#" + contactar.this.a));
            }
        }

        @Override
        public Byte doInBackground(String... strArr) {
            rf.h hVar = new rf.h();
            bf.e eVar = new bf.e(config.f23m6 + "/srv/enviar_petic.php?v=1&idapp=3014518&idusu=" + contactar.this.k + "&idofic=" + contactar.this.l);
            StringBuilder sb = new StringBuilder();
            try {
                ArrayList arrayList = new ArrayList(2);
                arrayList.add(new xf.k("nombre", contactar.this.n));
                arrayList.add(new xf.k(Scopes.EMAIL, contactar.this.o));
                arrayList.add(new xf.k("tel", contactar.this.p));
                arrayList.add(new xf.k("observ", contactar.this.q));
                eVar.a(new af.a(arrayList, "UTF-8"));
                eVar.x("User-Agent", "Android Vinebre Software");
                BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(hVar.a(eVar).c().j()));
                while (true) {
                    String readLine = bufferedReader.readLine();
                    if (readLine == null) {
                        break;
                    }
                    sb.append(readLine);
                }
                if (sb.indexOf("ANDROID:KO") == -1 && sb.indexOf("ANDROID:OK") != -1) {
                    return (byte) 1;
                }
                return (byte) 2;
            } catch (IOException unused) {
                return (byte) 2;
            } catch (ze.d unused2) {
                return (byte) 2;
            }
        }

        @Override
        public void onPostExecute(Byte b2) {
            try {
                contactar.this.m.dismiss();
            } catch (Exception unused) {
            }
            if (b2.byteValue() != 1) {
                contactar.this.h();
                return;
            }
            AlertDialog create = new AlertDialog.Builder(contactar.this).setCancelable(false).setPositiveButton(2131886114, new a()).setMessage(2131886601).create();
            if (!contactar.this.a.equals("")) {
                create.setOnShowListener(new b(create));
            }
            create.show();
            try {
                ((TextView) create.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
            } catch (Exception unused2) {
            }
        }

        private l() {
        }
    }

    private void f(Context context) {
        this.g = new a(context);
    }

    @Override
    public void abrir_secc(android.view.View r5) {
        throw new UnsupportedOperationException("Method not decompiled: com.eugene.hymnesetlouanges.contactar.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() {
        int u0 = this.s.u0(this);
        int i2 = this.s.T4;
        int i3 = 0;
        if (i2 == 1) {
            ListView listView = (ListView) findViewById(2131362584);
            this.v = listView;
            this.s.s(listView);
        } else if (i2 == 0) {
            int i4 = 0;
            int i7 = 0;
            while (true) {
                m[] mVarArr = this.s.Z1;
                if (i4 >= mVarArr.length) {
                    break;
                }
                if (!mVarArr[i4].B) {
                    findViewById(i4).setOnClickListener(this);
                    i7++;
                    if (i7 == u0) {
                        break;
                    }
                }
                i4++;
            }
            if (findViewById(2131362438) != null && findViewById(2131362438).getVisibility() == 0) {
                findViewById(2131362438).setOnClickListener(this);
            }
        }
        while (true) {
            int[] iArr = this.s.c2;
            if (i3 >= iArr.length) {
                return;
            }
            int i8 = iArr[i3];
            if (i8 > 0) {
                findViewById(i8).setOnClickListener(this);
            }
            i3++;
        }
    }

    void h() {
        AlertDialog create = new AlertDialog.Builder(this).setCancelable(false).setPositiveButton(2131886286, (DialogInterface.OnClickListener) null).setMessage(2131886423).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 i2, int i3, Intent intent) {
        config configVar = this.s;
        if ((configVar == null || !configVar.U0(i2, i3, intent, this)) && i3 == -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.r || !this.s.N5) {
            super.onBackPressed();
        } else {
            this.r = 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() != 2131362065) {
            String str8 = this.s.f60q4;
            if ((str8 == null || str8.equals("")) && (((str = this.s.d3) == null || str.equals("")) && (((str2 = this.s.f58p4) == null || str2.equals("")) && (((str3 = this.s.f66t4) == null || str3.equals("")) && (((str4 = this.s.f68u4) == null || str4.equals("")) && (((str5 = this.s.J4) == null || str5.equals("")) && (((str6 = this.s.f70v4) == null || str6.equals("")) && ((str7 = this.s.f72w4) == null || str7.equals(""))))))))) {
                abrir_secc(view);
                return;
            }
            String str9 = this.s.f60q4;
            if (str9 != null && !str9.equals("")) {
                this.h = new RewardedVideo(this, this.s.f60q4);
            }
            String str10 = this.s.f58p4;
            if (str10 != null) {
                str10.equals("");
            }
            String str11 = this.s.f66t4;
            if (str11 != null && !str11.equals("")) {
                this.i = new RewardedVideoAd(this, this.s.f66t4);
            }
            String str12 = this.s.f68u4;
            if (str12 != null && !str12.equals("")) {
                this.j = new StartAppAd(this);
            }
            ProgressDialog progressDialog = new ProgressDialog(this);
            this.f = progressDialog;
            this.e = view;
            if (this.s.j1(this, view, this.a, progressDialog, this.g, this.h, this.i, this.j, view)) {
                return;
            }
            abrir_secc(view);
            return;
        }
        AlertDialog.Builder builder = new AlertDialog.Builder(this);
        builder.setCancelable(false).setPositiveButton(getResources().getString(2131886286), (DialogInterface.OnClickListener) null);
        this.n = ((TextView) findViewById(2131362089)).getText().toString();
        this.o = ((TextView) findViewById(2131362084)).getText().toString();
        this.p = ((TextView) findViewById(2131362095)).getText().toString();
        this.q = ((TextView) findViewById(2131362091)).getText().toString();
        try {
            if (this.n.length() == 0 && this.s.r == 2) {
                builder.setMessage(2131886499);
                AlertDialog create = builder.create();
                if (!this.a.equals("")) {
                    create.setOnShowListener(new f(create));
                }
                create.show();
                ((TextView) create.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
            } else if (this.o.length() == 0 && this.s.s == 2) {
                builder.setMessage(2131886495);
                AlertDialog create2 = builder.create();
                if (!this.a.equals("")) {
                    create2.setOnShowListener(new g(create2));
                }
                create2.show();
                ((TextView) create2.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
            } else if (this.p.length() == 0 && this.s.t == 2) {
                builder.setMessage(2131886501);
                AlertDialog create3 = builder.create();
                if (!this.a.equals("")) {
                    create3.setOnShowListener(new h(create3));
                }
                create3.show();
                ((TextView) create3.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
            } else if (this.q.length() == 0) {
                builder.setMessage(2131886498);
                AlertDialog create4 = builder.create();
                if (!this.a.equals("")) {
                    create4.setOnShowListener(new i(create4));
                }
                create4.show();
                ((TextView) create4.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
            } else {
                if (this.o.length() <= 0 || this.o.contains("@")) {
                    ProgressDialog progressDialog2 = new ProgressDialog(this);
                    this.m = progressDialog2;
                    progressDialog2.setMessage(getString(2131886415));
                    this.m.setIndeterminate(true);
                    this.m.setOnShowListener(new k());
                    this.m.show();
                    new l().execute(new String[0]);
                    return;
                }
                builder.setMessage(2131886414);
                AlertDialog create5 = builder.create();
                if (!this.a.equals("")) {
                    create5.setOnShowListener(new j(create5));
                }
                create5.show();
                ((TextView) create5.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
            }
        } catch (Exception unused) {
        }
    }

    @Override
    public void onCreate(Bundle bundle) {
        config configVar = (config) getApplicationContext();
        this.s = configVar;
        if (configVar.l1 == null) {
            configVar.f1();
        }
        f(this);
        config configVar2 = this.s;
        this.a = config.h(configVar2.u1, configVar2.D1);
        if (!config.J("#" + this.s.u1)) {
            setTheme(2131952516);
        }
        super.onCreate(bundle);
        setContentView(2131558491);
        g();
        this.s.V0(this, false);
        SearchManager searchManager = (SearchManager) getSystemService("search");
        searchManager.setOnCancelListener(new c());
        searchManager.setOnDismissListener(new d());
        if (bundle == null) {
            this.s.q1(this, false, false);
        }
        this.t = this.s.F0(this, false);
        Bundle extras = getIntent().getExtras();
        if (bundle == null) {
            this.d = extras != null && extras.containsKey("es_root") && extras.getBoolean("es_root", false);
        } else {
            this.d = bundle.containsKey("es_root") && bundle.getBoolean("es_root", false);
        }
        this.l = extras.getInt("idofic");
        this.k = getSharedPreferences("sh", 0).getLong("idusu", 0L);
        if (!this.s.y1.equals("")) {
            ((TextView) findViewById(2131363512)).setTextColor(Color.parseColor("#" + this.s.y1));
        }
        if (!this.s.z1.equals("")) {
            findViewById(2131363538).setBackgroundColor(Color.parseColor("#" + this.s.z1));
        }
        if (!this.s.A1.equals("")) {
            Drawable drawable = getResources().getDrawable(2131231150);
            drawable.setColorFilter(Color.parseColor("#" + this.s.A1), PorterDuff.Mode.MULTIPLY);
            ((ImageView) findViewById(2131362499)).setImageDrawable(drawable);
        }
        if (!this.s.B1.equals("")) {
            int parseColor = Color.parseColor("#" + this.s.B1);
            ((TextView) findViewById(2131363515)).setTextColor(parseColor);
            ((TextView) findViewById(2131363514)).setTextColor(parseColor);
            ((TextView) findViewById(2131363490)).setTextColor(parseColor);
            ((TextView) findViewById(2131363001)).setTextColor(parseColor);
            ((TextView) findViewById(2131363451)).setTextColor(parseColor);
            ((TextView) findViewById(2131363000)).setTextColor(parseColor);
            ((TextView) findViewById(2131363508)).setTextColor(parseColor);
            ((TextView) findViewById(2131363002)).setTextColor(parseColor);
            ((TextView) findViewById(2131363488)).setTextColor(parseColor);
            config.G((EditText) findViewById(2131362089), Boolean.valueOf(config.J("#" + this.s.B1)), this.s.D1);
            config.G((EditText) findViewById(2131362084), Boolean.valueOf(config.J("#" + this.s.B1)), this.s.D1);
            config.G((EditText) findViewById(2131362095), Boolean.valueOf(config.J("#" + this.s.B1)), this.s.D1);
            config.G((EditText) findViewById(2131362091), Boolean.valueOf(config.J("#" + this.s.B1)), this.s.D1);
        }
        if (config.J("#" + this.s.D1)) {
            findViewById(2131362477).setVisibility(0);
        } else {
            findViewById(2131362476).setVisibility(0);
        }
        Drawable drawable2 = getResources().getDrawable(2131231155);
        drawable2.setColorFilter(Color.parseColor("#" + this.s.D1), PorterDuff.Mode.MULTIPLY);
        ImageView imageView = (ImageView) findViewById(2131362065);
        imageView.setImageDrawable(drawable2);
        imageView.setOnClickListener(this);
        int i2 = 0;
        while (true) {
            com.eugene.hymnesetlouanges.j[] jVarArr = this.s.a2;
            if (i2 >= jVarArr.length) {
                break;
            }
            com.eugene.hymnesetlouanges.j jVar = jVarArr[i2];
            if (jVar.l == this.l && jVar.y && !jVar.e.equals("")) {
                ((TextView) findViewById(2131363514)).setText(this.s.a2[i2].e);
                findViewById(2131363389).setVisibility(0);
                break;
            }
            i2++;
        }
        int i3 = this.s.r;
        if (i3 > 0) {
            if (i3 == 1) {
                findViewById(2131363001).setVisibility(0);
            }
            findViewById(2131363382).setVisibility(0);
        }
        int i4 = this.s.s;
        if (i4 > 0) {
            if (i4 == 1) {
                findViewById(2131363000).setVisibility(0);
            }
            findViewById(2131363379).setVisibility(0);
        }
        int i7 = this.s.t;
        if (i7 > 0) {
            if (i7 == 1) {
                findViewById(2131363002).setVisibility(0);
            }
            findViewById(2131363387).setVisibility(0);
        }
        if (extras.containsKey("msg_predefinido")) {
            ((EditText) findViewById(2131362091)).setText(getResources().getString(2131886556) + " " + extras.getString("msg_predefinido"));
        }
        if (this.s.u1.equals("")) {
            return;
        }
        findViewById(2131362685).setBackgroundDrawable(new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[]{Color.parseColor("#" + this.s.u1), Color.parseColor("#" + this.s.v1)}));
    }

    @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.s.J3 != 0 && (cVar3 = this.t) != null && (adView2 = cVar3.a) != null) {
            adView2.destroy();
        }
        if (this.s.J3 != 0 && (cVar2 = this.t) != null && (adView = cVar2.b) != null) {
            adView.destroy();
        }
        if (this.s.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.s.J3 != 0 && (cVar2 = this.t) != null && (adView = cVar2.a) != null) {
            adView.pause();
        }
        if (this.s.J3 != 0 && (cVar = this.t) != 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 b());
    }

    @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.s.J3 != 0 && (cVar2 = this.t) != null && (adView = cVar2.a) != null) {
            adView.resume();
        }
        if (this.s.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 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.u = true;
        config.i1(this);
    }

    public void videoEnded() {
        this.u = true;
        config.i1(this);
    }
}