导航菜单

页面标题

页面副标题

Cantique de Louanges v12 - empezar.java 源代码

正在查看: Cantique de Louanges v12 应用的 empezar.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.eugene.hymnesetlouanges;

import android.R;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.res.Configuration;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.graphics.Point;
import android.graphics.PorterDuff;
import android.graphics.Typeface;
import android.graphics.drawable.LayerDrawable;
import android.location.Location;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.provider.Settings;
import android.util.Log;
import android.view.Display;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.view.animation.Animation;
import android.view.animation.ScaleAnimation;
import android.webkit.WebView;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.RatingBar;
import android.widget.TextView;
import com.appnext.ads.interstitial.Interstitial;
import com.appnext.core.AppnextAdCreativeType;
import com.appnext.core.AppnextError;
import com.appnext.core.callbacks.OnAdClosed;
import com.appnext.core.callbacks.OnAdError;
import com.appnext.core.callbacks.OnAdLoaded;
import com.appnext.nativeads.NativeAd;
import com.appnext.nativeads.NativeAdListener;
import com.appnext.nativeads.NativeAdRequest;
import com.eugene.hymnesetlouanges.config;
import com.google.android.gms.ads.AdError;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.FullScreenContentCallback;
import com.google.android.gms.ads.LoadAdError;
import com.google.android.gms.ads.appopen.AppOpenAd;
import com.google.android.gms.ads.interstitial.InterstitialAd;
import com.google.android.gms.ads.interstitial.InterstitialAdLoadCallback;
import com.google.android.gms.cast.CredentialsData;
import com.google.android.gms.common.GoogleApiAvailability;
import com.google.android.gms.location.FusedLocationProviderClient;
import com.google.android.gms.location.LocationServices;
import com.google.android.gms.tasks.OnSuccessListener;
import com.google.android.ump.ConsentForm;
import com.google.android.ump.ConsentInformation;
import com.google.android.ump.FormError;
import com.google.android.ump.UserMessagingPlatform;
import com.ironsource.mediationsdk.adunit.adapter.utility.AdInfo;
import com.ironsource.mediationsdk.logger.IronSourceError;
import com.ironsource.mediationsdk.model.Placement;
import com.ironsource.mediationsdk.sdk.LevelPlayRewardedVideoListener;
import com.startapp.sdk.ads.nativead.StartAppNativeAd;
import com.startapp.sdk.adsbase.Ad;
import com.startapp.sdk.adsbase.StartAppAd;
import com.startapp.sdk.adsbase.adlisteners.AdDisplayListener;
import com.startapp.sdk.adsbase.adlisteners.AdEventListener;
import com.unity3d.ads.IUnityAdsInitializationListener;
import com.unity3d.ads.UnityAds;
import com.wortise.ads.interstitial.InterstitialAd;
import java.io.BufferedReader;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.Locale;
import java.util.Map;

public class empezar extends Activity {
    ProgressDialog B;
    ProgressDialog C;
    ProgressDialog D;
    AlertDialog.Builder E;
    SharedPreferences H;
    Bundle I;
    Thread J;
    CheckBox K;
    EditText L;
    FusedLocationProviderClient M;
    ConsentInformation N;
    config a;
    String e;
    String f;
    String g;
    Map i;
    long j;
    int k;
    int l;
    int m;
    int n;
    boolean s;
    boolean t;
    boolean u;
    String b = "";
    String c = "";
    String d = "";
    String h = "splash_ani.gif";
    boolean o = true;
    boolean p = false;
    boolean q = false;
    boolean r = false;
    boolean v = false;
    boolean w = false;
    boolean x = false;
    boolean y = false;
    boolean z = false;
    boolean A = false;
    Bitmap F = null;
    Bitmap G = null;

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

        @Override
        public void onClick(DialogInterface dialogInterface, int i) {
            SharedPreferences.Editor edit = empezar.this.H.edit();
            edit.putBoolean("cookies_aceptado", true);
            edit.commit();
            empezar.this.N();
        }
    }

    class a0 implements OnAdError {
        a0() {
        }

        public void adError(String str) {
            Log.e("ara", "Appnext 1 error:" + str);
            empezar empezarVar = empezar.this;
            if (empezarVar.q) {
                return;
            }
            config.P6 = null;
            empezarVar.q = true;
            empezarVar.L();
        }
    }

    private class a1 extends AsyncTask {
        @Override
        public Byte doInBackground(String... strArr) {
            SharedPreferences.Editor edit = empezar.this.H.edit();
            int i = 0;
            while (true) {
                config.x0[] x0VarArr = config.f29s6;
                if (i >= x0VarArr.length) {
                    return (byte) 0;
                }
                config.x0 x0Var = x0VarArr[i];
                String str = "mb_it" + x0Var.b;
                int i2 = x0Var.d;
                if (i2 > empezar.this.H.getInt(str + "_v_act", 0)) {
                    try {
                        try {
                            HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(config.f21k6 + "/srv/imgs/icos/app3014518_" + str + ".png?v=" + i2).openConnection();
                            httpURLConnection.setDoInput(true);
                            httpURLConnection.setConnectTimeout(5000);
                            httpURLConnection.setReadTimeout(7000);
                            httpURLConnection.connect();
                            Bitmap decodeStream = BitmapFactory.decodeStream(httpURLConnection.getInputStream());
                            try {
                                FileOutputStream openFileOutput = empezar.this.openFileOutput("ico_" + str, 0);
                                decodeStream.compress(Bitmap.CompressFormat.PNG, 100, openFileOutput);
                                openFileOutput.close();
                                edit.putInt(str + "_v_act", i2);
                                edit.commit();
                            } catch (Exception unused) {
                                return (byte) -1;
                            }
                        } catch (IOException unused2) {
                            return (byte) -1;
                        }
                    } catch (MalformedURLException unused3) {
                        return (byte) -1;
                    }
                }
                i++;
            }
        }

        @Override
        public void onPostExecute(Byte b) {
            empezar.this.H();
            if (b.byteValue() == -1) {
                empezar.this.o = false;
            }
            empezar.this.x();
        }

        @Override
        protected void onPreExecute() {
            empezar.this.F(2131886230);
        }

        private a1() {
        }
    }

    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("#" + empezar.this.f));
            this.a.getButton(-2).setTextColor(Color.parseColor("#" + empezar.this.f));
        }
    }

    class b0 implements OnAdLoaded {
        b0() {
        }

        public void adLoaded(String str, AppnextAdCreativeType appnextAdCreativeType) {
            try {
                config.P6.showAd();
            } catch (Exception unused) {
            }
        }
    }

    private class b1 extends AsyncTask {
        String a;
        String b;

        @Override
        public Byte doInBackground(String... strArr) {
            this.a = strArr[0];
            this.b = strArr[1];
            try {
                try {
                    HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(config.f21k6 + "/srv/imgs/sounds/app3014518_" + this.b + ".wav?v=" + this.a).openConnection();
                    httpURLConnection.setDoInput(true);
                    httpURLConnection.setConnectTimeout(5000);
                    httpURLConnection.setReadTimeout(7000);
                    httpURLConnection.connect();
                    InputStream inputStream = httpURLConnection.getInputStream();
                    try {
                        FileOutputStream openFileOutput = empezar.this.openFileOutput("sound_" + this.b, 0);
                        byte[] bArr = new byte[1024];
                        while (true) {
                            int read = inputStream.read(bArr);
                            if (read <= 0) {
                                openFileOutput.close();
                                inputStream.close();
                                return (byte) 0;
                            }
                            openFileOutput.write(bArr, 0, read);
                        }
                    } catch (Exception unused) {
                        return (byte) -1;
                    }
                } catch (IOException unused2) {
                    return (byte) -1;
                }
            } catch (MalformedURLException unused3) {
                return (byte) -1;
            }
        }

        @Override
        public void onPostExecute(Byte b) {
            empezar.this.H();
            if (b.byteValue() == -1) {
                empezar.this.o = false;
            } else {
                SharedPreferences.Editor edit = empezar.this.H.edit();
                if (this.b.equals("in")) {
                    edit.putString("vsi_act", this.a);
                } else {
                    edit.putString("vso_act", this.a);
                }
                edit.commit();
            }
            if (this.b.equals("out")) {
                empezar.this.y();
            } else {
                empezar.this.C();
            }
        }

        @Override
        protected void onPreExecute() {
            empezar.this.F(2131886230);
        }

        private b1() {
        }
    }

    class c implements LevelPlayRewardedVideoListener {
        boolean a;

        c() {
        }

        private void a() {
            Object obj;
            View view;
            config configVar = empezar.this.a;
            if (configVar == null || (obj = configVar.A4) == null || (view = configVar.B4) == null) {
                return;
            }
            ((com.eugene.hymnesetlouanges.a) obj).abrir_secc(view);
            config configVar2 = empezar.this.a;
            configVar2.A4 = null;
            configVar2.B4 = null;
        }

        public void onAdAvailable(AdInfo adInfo) {
        }

        public void onAdClicked(Placement placement, AdInfo adInfo) {
        }

        public void onAdClosed(AdInfo adInfo) {
            Context context;
            if (!this.a) {
                config configVar = empezar.this.a;
                if (configVar != null) {
                    configVar.A4 = null;
                    configVar.B4 = null;
                    return;
                }
                return;
            }
            config configVar2 = empezar.this.a;
            if (configVar2 != null && (context = configVar2.A4) != null && configVar2.B4 != null) {
                config.i1(context);
            }
            a();
        }

        public void onAdOpened(AdInfo adInfo) {
            this.a = false;
        }

        public void onAdRewarded(Placement placement, AdInfo adInfo) {
            this.a = true;
        }

        public void onAdShowFailed(IronSourceError ironSourceError, AdInfo adInfo) {
            this.a = false;
            a();
        }

        public void onAdUnavailable() {
            this.a = false;
            a();
        }
    }

    class c0 implements OnAdClosed {
        c0() {
        }

        public void onAdClosed() {
            config.P6 = null;
        }
    }

    private class c1 extends AsyncTask {
        String a;

        @Override
        public Byte doInBackground(String... strArr) {
            this.a = strArr[0];
            try {
                try {
                    HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(config.f21k6 + "/srv/imgs/gen/3014518_splash.png?v=" + this.a).openConnection();
                    httpURLConnection.setDoInput(true);
                    httpURLConnection.setConnectTimeout(5000);
                    httpURLConnection.setReadTimeout(7000);
                    httpURLConnection.connect();
                    empezar.this.F = BitmapFactory.decodeStream(httpURLConnection.getInputStream());
                    try {
                        FileOutputStream openFileOutput = empezar.this.openFileOutput("splash", 0);
                        empezar.this.F.compress(Bitmap.CompressFormat.PNG, 100, openFileOutput);
                        openFileOutput.close();
                        return (byte) 0;
                    } catch (Exception unused) {
                        return (byte) -1;
                    }
                } catch (IOException unused2) {
                    return (byte) -1;
                }
            } catch (MalformedURLException unused3) {
                return (byte) -1;
            }
        }

        @Override
        public void onPostExecute(Byte b) {
            empezar.this.H();
            if (b.byteValue() == -1) {
                empezar.this.o = false;
            } else {
                ImageView imageView = (ImageView) empezar.this.findViewById(2131362554);
                try {
                    config configVar = empezar.this.a;
                    configVar.v1(imageView, Boolean.valueOf(configVar.A), empezar.this.a.C);
                } catch (Exception unused) {
                }
                imageView.setImageBitmap(empezar.this.F);
                imageView.setVisibility(0);
            }
            empezar.this.w();
        }

        @Override
        protected void onPreExecute() {
            empezar.this.F(2131886231);
        }

        private c1() {
        }
    }

    class d extends NativeAdListener {
        d() {
        }

        public void onAdLoaded(NativeAd nativeAd, AppnextAdCreativeType appnextAdCreativeType) {
            super.onAdLoaded(nativeAd, appnextAdCreativeType);
            try {
                empezar.this.a.f40b6.add(nativeAd);
            } catch (Exception unused) {
            }
        }

        public void onError(NativeAd nativeAd, AppnextError appnextError) {
            super.onError(nativeAd, appnextError);
        }
    }

    class d0 implements OnAdError {
        d0() {
        }

        public void adError(String str) {
            Log.e("ara", "Appnext 2 error:" + str);
            config.P6 = null;
        }
    }

    private class d1 extends AsyncTask {
        @Override
        public Byte doInBackground(String... strArr) {
            rf.h hVar = new rf.h();
            bf.e eVar = new bf.e(config.f23m6 + "/srv/comprobar_contra_app.php?v=1&idapp=3014518&idusu=" + empezar.this.j);
            StringBuilder sb = new StringBuilder();
            try {
                ArrayList arrayList = new ArrayList(2);
                arrayList.add(new xf.k("contra", empezar.this.e));
                eVar.a(new af.a(arrayList));
                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) {
                    return (byte) 2;
                }
                return sb.indexOf("ANDROID:OK") != -1 ? (byte) 1 : (byte) 0;
            } catch (IOException unused) {
                return (byte) 0;
            } catch (ze.d unused2) {
                return (byte) 0;
            }
        }

        @Override
        public void onPostExecute(Byte b) {
            try {
                empezar.this.D.dismiss();
            } catch (Exception unused) {
            }
            if (b.byteValue() == 1) {
                if (empezar.this.H.getBoolean("pwd_nomostrarmas_def", true)) {
                    SharedPreferences.Editor edit = empezar.this.H.edit();
                    edit.putBoolean("pwd_validado", true);
                    edit.commit();
                }
                empezar.this.r();
                return;
            }
            if (b.byteValue() != 2) {
                empezar empezarVar = empezar.this;
                empezarVar.E(empezarVar.getString(2131886424), empezar.this.getString(2131886423));
            } else {
                empezar empezarVar2 = empezar.this;
                empezarVar2.v = true;
                empezarVar2.J();
            }
        }

        private d1() {
        }
    }

    class e implements AdEventListener {
        final StartAppNativeAd a;

        e(StartAppNativeAd startAppNativeAd) {
            this.a = startAppNativeAd;
        }

        public void onFailedToReceiveAd(Ad ad) {
        }

        public void onReceiveAd(Ad ad) {
            empezar.this.a.f42c6 = this.a.getNativeAds();
        }
    }

    class e0 extends AppOpenAd.AppOpenAdLoadCallback {
        final Activity b;

        class a extends FullScreenContentCallback {
            a() {
            }

            @Override
            public void onAdDismissedFullScreenContent() {
                empezar.this.L();
            }

            @Override
            public void onAdFailedToShowFullScreenContent(AdError adError) {
                empezar.this.L();
            }

            @Override
            public void onAdShowedFullScreenContent() {
            }
        }

        e0(Activity activity) {
            this.b = activity;
        }

        @Override
        public void onAdLoaded(AppOpenAd appOpenAd) {
            appOpenAd.setFullScreenContentCallback(new a());
            appOpenAd.show(this.b);
        }

        @Override
        public void onAdFailedToLoad(LoadAdError loadAdError) {
            empezar.this.L();
        }
    }

    class f implements com.vungle.ads.x0 {
        f() {
        }

        public void onError(com.vungle.ads.b2 b2Var) {
            Log.e("ara", "Vungle error:" + b2Var.getErrorMessage());
        }

        public void onSuccess() {
            Log.e("ara", "Vungle SDK init onSuccess()");
        }
    }

    class f0 extends InterstitialAdLoadCallback {

        class a extends FullScreenContentCallback {
            a() {
            }

            @Override
            public void onAdDismissedFullScreenContent() {
                empezar.this.L();
            }

            @Override
            public void onAdFailedToShowFullScreenContent(AdError adError) {
                empezar empezarVar = empezar.this;
                empezarVar.t = true;
                empezarVar.L();
            }

            @Override
            public void onAdShowedFullScreenContent() {
                config.O6 = null;
            }
        }

        f0() {
        }

        @Override
        public void onAdLoaded(InterstitialAd interstitialAd) {
            config.O6 = interstitialAd;
            interstitialAd.setFullScreenContentCallback(new a());
            try {
                config.O6.show(empezar.this);
            } catch (Exception unused) {
                empezar empezarVar = empezar.this;
                empezarVar.t = true;
                empezarVar.L();
            }
        }

        @Override
        public void onAdFailedToLoad(LoadAdError loadAdError) {
            config.O6 = null;
            empezar empezarVar = empezar.this;
            empezarVar.t = true;
            empezarVar.L();
        }
    }

    class g implements IUnityAdsInitializationListener {
        g() {
        }

        public void onInitializationComplete() {
        }

        public void onInitializationFailed(UnityAds.UnityAdsInitializationError unityAdsInitializationError, String str) {
        }
    }

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

        @Override
        public void onClick(DialogInterface dialogInterface, int i) {
            empezar.this.finish();
        }
    }

    class h implements DialogInterface.OnClickListener {
        final SharedPreferences a;

        h(SharedPreferences sharedPreferences) {
            this.a = sharedPreferences;
        }

        @Override
        public void onClick(DialogInterface dialogInterface, int i) {
            empezar empezarVar = empezar.this;
            if (empezarVar.a.f63r5 && empezarVar.K.isChecked()) {
                SharedPreferences.Editor edit = this.a.edit();
                edit.putBoolean("bienvenida_nomas", true);
                edit.commit();
            }
            empezar.this.I();
        }
    }

    class h0 implements AdEventListener {

        class a implements AdDisplayListener {
            a() {
            }

            public void adClicked(Ad ad) {
            }

            public void adDisplayed(Ad ad) {
            }

            public void adHidden(Ad ad) {
                config.R6 = null;
                empezar.this.L();
            }

            public void adNotDisplayed(Ad ad) {
                config.R6 = null;
                empezar.this.L();
            }
        }

        h0() {
        }

        public void onFailedToReceiveAd(Ad ad) {
            config.R6 = null;
            empezar.this.L();
        }

        public void onReceiveAd(Ad ad) {
            if (config.R6 == null) {
                empezar.this.L();
            } else {
                config.R6.showAd(config.X6 == 1 ? "Intersticial entrada" : "INTERSTITIAL", new a());
            }
        }
    }

    class i extends Thread {

        class a implements Runnable {

            class DialogInterfaceOnShowListenerC0087a implements DialogInterface.OnShowListener {
                final AlertDialog a;

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

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

            a() {
            }

            @Override
            public void run() {
                empezar empezarVar = empezar.this;
                if (!empezarVar.p) {
                    empezarVar.I();
                    return;
                }
                AlertDialog create = empezarVar.E.create();
                if (!empezar.this.f.equals("")) {
                    create.setOnShowListener(new DialogInterfaceOnShowListenerC0087a(create));
                }
                try {
                    create.show();
                    if (empezar.this.a.f63r5) {
                        return;
                    }
                    try {
                        ((TextView) create.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
                    } catch (Exception unused) {
                    }
                } catch (Exception unused2) {
                    empezar.this.I();
                }
            }
        }

        i() {
        }

        @Override
        public void run() {
            try {
                Thread.sleep(empezar.this.a.x);
            } catch (InterruptedException unused) {
            }
            empezar.this.runOnUiThread(new a());
        }
    }

    class i0 implements InterstitialAd.Listener {
        i0() {
        }

        public void onInterstitialClicked(com.wortise.ads.interstitial.InterstitialAd interstitialAd) {
        }

        public void onInterstitialDismissed(com.wortise.ads.interstitial.InterstitialAd interstitialAd) {
            empezar.this.L();
        }

        public void onInterstitialFailedToLoad(com.wortise.ads.interstitial.InterstitialAd interstitialAd, com.wortise.ads.AdError adError) {
            com.wortise.ads.interstitial.InterstitialAd interstitialAd2 = config.S6;
            if (interstitialAd2 != null) {
                interstitialAd2.destroy();
            }
            config.S6 = null;
            empezar.this.L();
        }

        public void onInterstitialFailedToShow(com.wortise.ads.interstitial.InterstitialAd interstitialAd, com.wortise.ads.AdError adError) {
        }

        public void onInterstitialImpression(com.wortise.ads.interstitial.InterstitialAd interstitialAd) {
        }

        public void onInterstitialLoaded(com.wortise.ads.interstitial.InterstitialAd interstitialAd) {
            interstitialAd.showAd();
        }

        public void onInterstitialShown(com.wortise.ads.interstitial.InterstitialAd interstitialAd) {
        }
    }

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

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

        @Override
        public void onClick(DialogInterface dialogInterface, int i) {
            empezar.this.finish();
        }
    }

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

        @Override
        public void onClick(DialogInterface dialogInterface, int i) {
            empezar.this.finish();
        }
    }

    class k0 implements DialogInterface.OnShowListener {
        final AlertDialog a;

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

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

    class l implements OnSuccessListener {
        l() {
        }

        public void onSuccess(Location location) {
            if (location != null) {
                String str = location.getLatitude() + "";
                String str2 = location.getLongitude() + "";
                SharedPreferences sharedPreferences = empezar.this.getSharedPreferences("sh", 0);
                SharedPreferences.Editor edit = sharedPreferences.edit();
                edit.putString("x", str);
                edit.putString("y", str2);
                edit.commit();
                long j = sharedPreferences.getLong("idusu", 0L);
                String string = sharedPreferences.getString("cod", "");
                if (j == 0 || string.equals("")) {
                    return;
                }
                new config.w0(config.f23m6 + "/srv/guardarpos.php?idusu=" + j + "&c=" + string + "&x=" + str + "&y=" + str2, "Android Vinebre Software").execute(new String[0]);
            }
        }
    }

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

        @Override
        public void onShow(DialogInterface dialogInterface) {
            config.b1((ProgressBar) empezar.this.B.findViewById(R.id.progress), empezar.this.d);
        }
    }

    class m implements DialogInterface.OnClickListener {
        final RatingBar a;

        m(RatingBar ratingBar) {
            this.a = ratingBar;
        }

        @Override
        public void onClick(DialogInterface dialogInterface, int i) {
            SharedPreferences.Editor edit = empezar.this.H.edit();
            edit.putInt("rt_n", -1);
            edit.commit();
            empezar empezarVar = empezar.this;
            int i2 = empezarVar.a.f79z5;
            if (i2 == 0) {
                Intent intent = new Intent("android.intent.action.VIEW", Uri.parse("market://details?id=" + empezar.this.getPackageName()));
                intent.addFlags(1208483840);
                empezar empezarVar2 = empezar.this;
                empezarVar2.w = true;
                try {
                    empezarVar2.startActivity(intent);
                    return;
                } catch (Exception unused) {
                    empezar.this.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://play.google.com/store/apps/details?id=" + empezar.this.getPackageName())));
                    return;
                }
            }
            if (i2 == 1) {
                new config.w0(config.f23m6 + "/srv/rate.php?idusu=" + empezar.this.j + "&cod_g=" + empezar.this.g + "&aid=" + Settings.Secure.getString(empezarVar.getContentResolver(), "android_id") + "&r=" + this.a.getRating(), "Android Vinebre Software").execute(new String[0]);
                empezar.this.K();
            }
        }
    }

    class m0 implements DialogInterface.OnClickListener {

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

            @Override
            public void onShow(DialogInterface dialogInterface) {
                config.b1((ProgressBar) empezar.this.D.findViewById(R.id.progress), empezar.this.d);
            }
        }

        m0() {
        }

        @Override
        public void onClick(DialogInterface dialogInterface, int i) {
            SharedPreferences.Editor edit = empezar.this.H.edit();
            if (empezar.this.K.isChecked()) {
                edit.putBoolean("pwd_nomostrarmas_def", true);
            } else {
                edit.putBoolean("pwd_nomostrarmas_def", false);
            }
            edit.commit();
            empezar.this.D = new ProgressDialog(empezar.this);
            empezar empezarVar = empezar.this;
            empezarVar.D.setMessage(empezarVar.getString(2131886347));
            empezar.this.D.setIndeterminate(true);
            if (!empezar.this.d.equals("")) {
                empezar.this.D.setOnShowListener(new a());
            }
            try {
                empezar.this.D.show();
            } catch (Exception unused) {
            }
            empezar empezarVar2 = empezar.this;
            empezarVar2.e = empezarVar2.L.getText().toString();
            new d1().execute(new String[0]);
        }
    }

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

        @Override
        public void onClick(DialogInterface dialogInterface, int i) {
            empezar.this.K();
        }
    }

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

        @Override
        public void onClick(DialogInterface dialogInterface, int i) {
            empezar.this.finish();
        }
    }

    class o implements DialogInterface.OnShowListener {
        final AlertDialog a;

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

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

    class o0 implements DialogInterface.OnCancelListener {
        o0() {
        }

        @Override
        public void onCancel(DialogInterface dialogInterface) {
            empezar.this.finish();
        }
    }

    class p extends NativeAdListener {
        p() {
        }

        public void adImpression(NativeAd nativeAd) {
            super.adImpression(nativeAd);
        }

        public void onAdClicked(NativeAd nativeAd) {
            super.onAdClicked(nativeAd);
        }

        public void onAdLoaded(NativeAd nativeAd, AppnextAdCreativeType appnextAdCreativeType) {
            super.onAdLoaded(nativeAd, appnextAdCreativeType);
            empezar.this.n(Boolean.FALSE, nativeAd);
        }

        public void onError(NativeAd nativeAd, AppnextError appnextError) {
            super.onError(nativeAd, appnextError);
            empezar.this.findViewById(com.google.android.gms.cast.framework.R.id.progressBar).setVisibility(8);
            empezar empezarVar = empezar.this;
            if (empezarVar.q) {
                return;
            }
            config.P6 = null;
            empezarVar.q = true;
            empezarVar.L();
        }
    }

    class p0 implements DialogInterface.OnShowListener {
        final AlertDialog a;

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

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

    class q implements View.OnClickListener {
        q() {
        }

        @Override
        public void onClick(View view) {
            empezar empezarVar = empezar.this;
            if (empezarVar.q) {
                return;
            }
            empezarVar.q = true;
            empezarVar.L();
        }
    }

    class q0 implements DialogInterface.OnShowListener {
        final AlertDialog a;

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

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

    class r implements View.OnClickListener {
        r() {
        }

        @Override
        public void onClick(View view) {
            empezar.this.m();
        }
    }

    class r0 implements View.OnTouchListener {
        r0() {
        }

        @Override
        public boolean onTouch(View view, MotionEvent motionEvent) {
            return motionEvent.getAction() == 2;
        }
    }

    class s implements View.OnClickListener {
        s() {
        }

        @Override
        public void onClick(View view) {
            empezar.this.m();
        }
    }

    class s0 implements DialogInterface.OnCancelListener {
        s0() {
        }

        @Override
        public void onCancel(DialogInterface dialogInterface) {
            try {
                empezar.this.J.interrupt();
            } catch (Exception unused) {
            }
            empezar.this.finish();
        }
    }

    class t implements View.OnClickListener {
        t() {
        }

        @Override
        public void onClick(View view) {
            empezar.this.m();
        }
    }

    class t0 extends Handler {
        t0() {
        }

        @Override
        public void handleMessage(Message message) {
            super.handleMessage(message);
            empezar empezarVar = empezar.this;
            int i = empezarVar.l;
            if (i > 0) {
                empezarVar.l = i - 1;
                try {
                    empezarVar.C.setMessage(empezar.this.l + "s.");
                } catch (Exception unused) {
                }
                empezar empezarVar2 = empezar.this;
                if (empezarVar2.l == 0) {
                    empezarVar2.O();
                }
            }
        }
    }

    class u implements View.OnClickListener {
        u() {
        }

        @Override
        public void onClick(View view) {
            empezar.this.m();
        }
    }

    class u0 implements Runnable {
        final Handler a;

        u0(Handler handler) {
            this.a = handler;
        }

        @Override
        public void run() {
            while (empezar.this.l > 0) {
                try {
                    Thread.sleep(1000L);
                    Handler handler = this.a;
                    handler.sendMessage(handler.obtainMessage());
                } catch (Exception unused) {
                    return;
                }
            }
        }
    }

    class v implements DialogInterface.OnShowListener {
        final AlertDialog a;

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

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

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

        @Override
        public void onClick(DialogInterface dialogInterface, int i) {
            empezar.this.finish();
        }
    }

    class w implements View.OnClickListener {
        w() {
        }

        @Override
        public void onClick(View view) {
            empezar.this.m();
        }
    }

    private class w0 extends AsyncTask {

        class a implements OnSuccessListener {
            a() {
            }

            public void onSuccess(Location location) {
                if (location != null) {
                    String str = location.getLatitude() + "";
                    String str2 = location.getLongitude() + "";
                    SharedPreferences sharedPreferences = empezar.this.getSharedPreferences("sh", 0);
                    SharedPreferences.Editor edit = sharedPreferences.edit();
                    edit.putString("x", str);
                    edit.putString("y", str2);
                    edit.commit();
                    long j = sharedPreferences.getLong("idusu", 0L);
                    String string = sharedPreferences.getString("cod", "");
                    if (j == 0 || string.equals("")) {
                        return;
                    }
                    new config.w0(config.f23m6 + "/srv/guardarpos.php?idusu=" + j + "&c=" + string + "&x=" + str + "&y=" + str2, "Android Vinebre Software").execute(new String[0]);
                }
            }
        }

        @Override
        public Byte doInBackground(String... strArr) {
            HttpURLConnection httpURLConnection;
            Throwable th;
            empezar empezarVar = empezar.this;
            if (empezarVar.y) {
                return (byte) 0;
            }
            String str = "";
            String str2 = empezarVar.s ? "&recup_todo=1" : "";
            String string = empezarVar.H.getString("fultsync", "010100000000");
            Bundle bundle = empezar.this.I;
            if (bundle != null && bundle.getString("notif_id") != null && !empezar.this.I.getString("notif_id").equals("0")) {
                str = "&notif=" + empezar.this.I.getString("notif_id");
            }
            Bundle bundle2 = empezar.this.I;
            if (bundle2 != null && bundle2.containsKey("idnotif_marcar")) {
                SharedPreferences.Editor edit = empezar.this.H.edit();
                edit.putBoolean("notif_" + empezar.this.I.getInt("idnotif_marcar") + "_leida", true);
                edit.commit();
                config.e(empezar.this.getApplicationContext());
            }
            try {
                HttpURLConnection httpURLConnection2 = null;
                try {
                    try {
                        httpURLConnection = (HttpURLConnection) new URL(config.f20j6 + "config." + config.f22l6 + "/srv/config.php?v=183&vname=" + config.i0(empezar.this) + "&idapp=3014518&idusu=" + empezar.this.j + "&cod_g=" + empezar.this.g + "&gp=" + empezar.this.m + "&am=" + empezar.this.n + "&idl=" + Locale.getDefault().getLanguage() + "&pa_env=1&pa=" + Locale.getDefault().getCountry() + "&pn=" + empezar.this.getPackageName() + "&fus=" + string + str2 + str + "&aid=" + Settings.Secure.getString(empezar.this.getContentResolver(), "android_id")).openConnection();
                    } catch (Throwable th2) {
                        httpURLConnection = null;
                        th = th2;
                    }
                } catch (Exception unused) {
                }
                try {
                    httpURLConnection.setDoInput(true);
                    httpURLConnection.setConnectTimeout(10000);
                    httpURLConnection.setReadTimeout(10000);
                    httpURLConnection.setRequestProperty("User-Agent", "Android Vinebre Software");
                    BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(httpURLConnection.getInputStream()));
                    StringBuilder sb = new StringBuilder();
                    while (true) {
                        String readLine = bufferedReader.readLine();
                        if (readLine == null) {
                            empezar.this.b = sb.toString();
                            empezar empezarVar2 = empezar.this;
                            empezarVar2.b = empezarVar2.b.replace("@EURO@", "€");
                            httpURLConnection.disconnect();
                            return (byte) 0;
                        }
                        sb.append(readLine + "\n");
                    }
                } catch (Exception unused2) {
                    httpURLConnection2 = httpURLConnection;
                    if (httpURLConnection2 != null) {
                        httpURLConnection2.disconnect();
                    }
                    return (byte) -1;
                } catch (Throwable th3) {
                    th = th3;
                    if (httpURLConnection != null) {
                        httpURLConnection.disconnect();
                    }
                    throw th;
                }
            } catch (MalformedURLException e) {
                e.printStackTrace();
                return (byte) -1;
            }
        }

        @Override
        public void onPostExecute(java.lang.Byte r26) {
            throw new UnsupportedOperationException("Method not decompiled: com.eugene.hymnesetlouanges.empezar.w0.onPostExecute(java.lang.Byte):void");
        }

        @Override
        protected void onPreExecute() {
            empezar empezarVar = empezar.this;
            if (empezarVar.y) {
                return;
            }
            empezarVar.F(2131886538);
        }

        private w0() {
        }
    }

    class x implements View.OnClickListener {
        x() {
        }

        @Override
        public void onClick(View view) {
            empezar.this.m();
        }
    }

    private class x0 extends AsyncTask {
        String a;

        @Override
        public Byte doInBackground(String... strArr) {
            this.a = strArr[0];
            try {
                try {
                    HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(config.f21k6 + "/srv/imgs/fonts/app3014518.ttf?v=" + this.a).openConnection();
                    httpURLConnection.setDoInput(true);
                    httpURLConnection.setConnectTimeout(5000);
                    httpURLConnection.setReadTimeout(7000);
                    httpURLConnection.connect();
                    InputStream inputStream = httpURLConnection.getInputStream();
                    try {
                        FileOutputStream openFileOutput = empezar.this.openFileOutput("font", 0);
                        byte[] bArr = new byte[1024];
                        while (true) {
                            int read = inputStream.read(bArr);
                            if (read <= 0) {
                                openFileOutput.close();
                                inputStream.close();
                                return (byte) 0;
                            }
                            openFileOutput.write(bArr, 0, read);
                        }
                    } catch (Exception unused) {
                        return (byte) -1;
                    }
                } catch (IOException unused2) {
                    return (byte) -1;
                }
            } catch (MalformedURLException unused3) {
                return (byte) -1;
            }
        }

        @Override
        public void onPostExecute(Byte b) {
            empezar.this.H();
            if (b.byteValue() == -1) {
                empezar.this.o = false;
            } else {
                SharedPreferences.Editor edit = empezar.this.H.edit();
                edit.putString("vfu_act", this.a);
                edit.commit();
                empezar.this.a.R(1);
            }
            empezar.this.B();
        }

        @Override
        protected void onPreExecute() {
            empezar.this.F(2131886230);
        }

        private x0() {
        }
    }

    class y implements Animation.AnimationListener {
        final String a;

        y(String str) {
            this.a = str;
        }

        @Override
        public void onAnimationEnd(Animation animation) {
            empezar.this.D(this.a);
        }

        @Override
        public void onAnimationRepeat(Animation animation) {
        }

        @Override
        public void onAnimationStart(Animation animation) {
        }
    }

    private class y0 extends AsyncTask {
        String a;

        @Override
        public Byte doInBackground(String... strArr) {
            this.a = strArr[0];
            try {
                try {
                    HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(config.f21k6 + "/srv/imgs/gen/3014518_icohome.png?v=" + this.a).openConnection();
                    httpURLConnection.setDoInput(true);
                    httpURLConnection.setConnectTimeout(5000);
                    httpURLConnection.setReadTimeout(7000);
                    httpURLConnection.connect();
                    empezar.this.G = BitmapFactory.decodeStream(httpURLConnection.getInputStream());
                    try {
                        FileOutputStream openFileOutput = empezar.this.openFileOutput("icohome", 0);
                        empezar.this.G.compress(Bitmap.CompressFormat.PNG, 100, openFileOutput);
                        openFileOutput.close();
                        return (byte) 0;
                    } catch (Exception unused) {
                        return (byte) -1;
                    }
                } catch (IOException unused2) {
                    return (byte) -1;
                }
            } catch (MalformedURLException unused3) {
                return (byte) -1;
            }
        }

        @Override
        public void onPostExecute(Byte b) {
            empezar.this.H();
            if (b.byteValue() == -1) {
                empezar.this.o = false;
            }
            empezar.this.A();
        }

        @Override
        protected void onPreExecute() {
            empezar.this.F(2131886229);
        }

        private y0() {
        }
    }

    class z implements OnAdLoaded {
        z() {
        }

        public void adLoaded(String str, AppnextAdCreativeType appnextAdCreativeType) {
            empezar.this.x = true;
            try {
                config.P6.showAd();
            } catch (Exception unused) {
                empezar empezarVar = empezar.this;
                if (empezarVar.q) {
                    return;
                }
                config.P6 = null;
                empezarVar.q = true;
                empezarVar.L();
            }
        }
    }

    private class z0 extends AsyncTask {
        @Override
        public Byte doInBackground(String... strArr) {
            boolean z;
            int i;
            String str;
            SharedPreferences.Editor edit = empezar.this.H.edit();
            String str2 = "";
            boolean z2 = false;
            int i2 = 0;
            int i3 = 0;
            for (int i4 = 0; i4 < 8; i4++) {
                if (i4 == 0) {
                    empezar empezarVar = empezar.this;
                    config configVar = empezarVar.a;
                    z = configVar.d0;
                    i = configVar.e0;
                    SharedPreferences sharedPreferences = empezarVar.H;
                    StringBuilder sb = new StringBuilder();
                    str = "ofics";
                    sb.append("ofics");
                    sb.append("_imgperso_v_act");
                    i3 = sharedPreferences.getInt(sb.toString(), 0);
                } else if (i4 == 1) {
                    empezar empezarVar2 = empezar.this;
                    config configVar2 = empezarVar2.a;
                    z = configVar2.Z;
                    i = configVar2.a0;
                    SharedPreferences sharedPreferences2 = empezarVar2.H;
                    StringBuilder sb2 = new StringBuilder();
                    str = "busc";
                    sb2.append("busc");
                    sb2.append("_imgperso_v_act");
                    i3 = sharedPreferences2.getInt(sb2.toString(), 0);
                } else if (i4 == 2) {
                    empezar empezarVar3 = empezar.this;
                    config configVar3 = empezarVar3.a;
                    z = configVar3.R;
                    i = configVar3.S;
                    SharedPreferences sharedPreferences3 = empezarVar3.H;
                    StringBuilder sb3 = new StringBuilder();
                    str = "share";
                    sb3.append("share");
                    sb3.append("_imgperso_v_act");
                    i3 = sharedPreferences3.getInt(sb3.toString(), 0);
                } else if (i4 == 3) {
                    empezar empezarVar4 = empezar.this;
                    config configVar4 = empezarVar4.a;
                    z = configVar4.h0;
                    i = configVar4.i0;
                    SharedPreferences sharedPreferences4 = empezarVar4.H;
                    StringBuilder sb4 = new StringBuilder();
                    str = "exit";
                    sb4.append("exit");
                    sb4.append("_imgperso_v_act");
                    i3 = sharedPreferences4.getInt(sb4.toString(), 0);
                } else if (i4 == 4) {
                    empezar empezarVar5 = empezar.this;
                    config configVar5 = empezarVar5.a;
                    z = configVar5.l0;
                    i = configVar5.m0;
                    SharedPreferences sharedPreferences5 = empezarVar5.H;
                    StringBuilder sb5 = new StringBuilder();
                    str = "notif";
                    sb5.append("notif");
                    sb5.append("_imgperso_v_act");
                    i3 = sharedPreferences5.getInt(sb5.toString(), 0);
                } else if (i4 == 5) {
                    empezar empezarVar6 = empezar.this;
                    config configVar6 = empezarVar6.a;
                    z = configVar6.p0;
                    i = configVar6.q0;
                    SharedPreferences sharedPreferences6 = empezarVar6.H;
                    StringBuilder sb6 = new StringBuilder();
                    str = "perfil";
                    sb6.append("perfil");
                    sb6.append("_imgperso_v_act");
                    i3 = sharedPreferences6.getInt(sb6.toString(), 0);
                } else if (i4 == 6) {
                    empezar empezarVar7 = empezar.this;
                    config configVar7 = empezarVar7.a;
                    z = configVar7.V;
                    i = configVar7.W;
                    SharedPreferences sharedPreferences7 = empezarVar7.H;
                    StringBuilder sb7 = new StringBuilder();
                    str = "search";
                    sb7.append("search");
                    sb7.append("_imgperso_v_act");
                    i3 = sharedPreferences7.getInt(sb7.toString(), 0);
                } else {
                    if (i4 == 7) {
                        empezar empezarVar8 = empezar.this;
                        config configVar8 = empezarVar8.a;
                        z = configVar8.u0;
                        i = configVar8.v0;
                        SharedPreferences sharedPreferences8 = empezarVar8.H;
                        StringBuilder sb8 = new StringBuilder();
                        str = "sinads";
                        sb8.append("sinads");
                        sb8.append("_imgperso_v_act");
                        i3 = sharedPreferences8.getInt(sb8.toString(), 0);
                    }
                    if (z2 && i2 > i3) {
                        try {
                            try {
                                HttpURLConnection httpURLConnection = (HttpURLConnection) new URL(config.f21k6 + "/srv/imgs/icos/app3014518_" + str2 + ".png?v=" + i2).openConnection();
                                httpURLConnection.setDoInput(true);
                                httpURLConnection.setConnectTimeout(5000);
                                httpURLConnection.setReadTimeout(7000);
                                httpURLConnection.connect();
                                Bitmap decodeStream = BitmapFactory.decodeStream(httpURLConnection.getInputStream());
                                try {
                                    FileOutputStream openFileOutput = empezar.this.openFileOutput("ico_" + str2, 0);
                                    decodeStream.compress(Bitmap.CompressFormat.PNG, 100, openFileOutput);
                                    openFileOutput.close();
                                    edit.putInt(str2 + "_imgperso_v_act", i2);
                                    edit.commit();
                                } catch (Exception unused) {
                                    return (byte) -1;
                                }
                            } catch (IOException unused2) {
                                return (byte) -1;
                            }
                        } catch (MalformedURLException unused3) {
                            return (byte) -1;
                        }
                    }
                }
                str2 = str;
                boolean z3 = z;
                i2 = i;
                z2 = z3;
                if (z2) {
                    HttpURLConnection httpURLConnection2 = (HttpURLConnection) new URL(config.f21k6 + "/srv/imgs/icos/app3014518_" + str2 + ".png?v=" + i2).openConnection();
                    httpURLConnection2.setDoInput(true);
                    httpURLConnection2.setConnectTimeout(5000);
                    httpURLConnection2.setReadTimeout(7000);
                    httpURLConnection2.connect();
                    Bitmap decodeStream2 = BitmapFactory.decodeStream(httpURLConnection2.getInputStream());
                    FileOutputStream openFileOutput2 = empezar.this.openFileOutput("ico_" + str2, 0);
                    decodeStream2.compress(Bitmap.CompressFormat.PNG, 100, openFileOutput2);
                    openFileOutput2.close();
                    edit.putInt(str2 + "_imgperso_v_act", i2);
                    edit.commit();
                }
            }
            return (byte) 0;
        }

        @Override
        public void onPostExecute(Byte b) {
            empezar.this.H();
            if (b.byteValue() == -1) {
                empezar.this.o = false;
            }
            empezar.this.z();
        }

        @Override
        protected void onPreExecute() {
            empezar.this.F(2131886230);
        }

        private z0() {
        }
    }

    public void D(String str) {
        boolean z2 = !this.a.W2.equals("");
        NativeAd nativeAd = !z2 ? new NativeAd(getApplicationContext(), str) : null;
        findViewById(2131362554).setVisibility(8);
        findViewById(2131363610).setVisibility(8);
        findViewById(2131363529).setVisibility(0);
        int i2 = this.a.N;
        if (i2 == 1) {
            config.b1((ProgressBar) findViewById(com.google.android.gms.cast.framework.R.id.progressBar), this.d);
        } else if (i2 == 2) {
            config.b1((ProgressBar) findViewById(com.google.android.gms.cast.framework.R.id.progressBar), this.a.Q);
        }
        findViewById(2131363154).setVisibility(0);
        if (z2) {
            n(Boolean.TRUE, null);
            return;
        }
        findViewById(2131362963).setVisibility(0);
        nativeAd.setPrivacyPolicyColor(0);
        nativeAd.setAdListener(new p());
        nativeAd.loadAd(new NativeAdRequest().setCachingPolicy(NativeAdRequest.CachingPolicy.STATIC_ONLY).setCreativeType(NativeAdRequest.CreativeType.STATIC_ONLY).setVideoLength(NativeAdRequest.VideoLength.SHORT).setVideoQuality(NativeAdRequest.VideoQuality.LOW));
    }

    public void I() {
        int i2;
        String[] strArr = new String[3];
        if (!this.a.e || !config.Z0(this) || androidx.core.content.b.checkSelfPermission(this, "android.permission.ACCESS_FINE_LOCATION") == 0 || androidx.core.content.b.checkSelfPermission(this, "android.permission.ACCESS_COARSE_LOCATION") == 0) {
            i2 = 0;
        } else {
            strArr[0] = "android.permission.ACCESS_FINE_LOCATION";
            strArr[1] = "android.permission.ACCESS_COARSE_LOCATION";
            i2 = 2;
        }
        if (Build.VERSION.SDK_INT >= 33 && config.a1(this) && androidx.core.content.b.checkSelfPermission(this, "android.permission.POST_NOTIFICATIONS") != 0) {
            strArr[i2] = "android.permission.POST_NOTIFICATIONS";
            i2++;
        }
        if (i2 <= 0) {
            M();
            return;
        }
        String[] strArr2 = new String[i2];
        for (int i3 = 0; i3 < i2; i3++) {
            strArr2[i3] = strArr[i3];
        }
        androidx.core.app.b.g(this, strArr2, 3);
    }

    public void K() {
        Log.e("ara", "preiniciar_2");
        this.t = false;
        this.u = false;
        int u1 = this.a.u1();
        if (u1 != 2 && u1 != 5) {
            if (u1 == 1) {
                if (config.C6.equals("")) {
                    com.google.android.gms.ads.interstitial.InterstitialAd.load(this, config.B6, new AdRequest.Builder().build(), new f0());
                    return;
                } else {
                    Log.e("ara", "appopenad");
                    AppOpenAd.load(this, config.C6, new AdRequest.Builder().build(), new e0(this));
                    return;
                }
            }
            if (u1 == 3) {
                this.u = true;
                L();
                return;
            }
            if (u1 == 4) {
                StartAppAd startAppAd = new StartAppAd(getApplicationContext());
                config.R6 = startAppAd;
                startAppAd.loadAd(new h0());
                return;
            }
            if (u1 == 9) {
                config.V6 = 9;
                L();
                return;
            }
            if (u1 == 10) {
                config.V6 = 10;
                L();
                return;
            }
            if (u1 != 12) {
                L();
                return;
            }
            com.wortise.ads.interstitial.InterstitialAd interstitialAd = config.S6;
            if (interstitialAd != null) {
                interstitialAd.destroy();
            }
            config.S6 = null;
            com.wortise.ads.interstitial.InterstitialAd interstitialAd2 = new com.wortise.ads.interstitial.InterstitialAd(this, config.G6);
            config.S6 = interstitialAd2;
            interstitialAd2.setListener(new i0());
            config.S6.loadAd();
            return;
        }
        if (u1 != 5 && !config.s0(this)) {
            Interstitial interstitial = new Interstitial(getApplicationContext(), config.f36z6);
            config.P6 = interstitial;
            interstitial.setMute(true);
            if (!config.N6.booleanValue()) {
                config.P6.setAutoPlay(false);
            }
            config.P6.setBackButtonCanClose(true);
            config.P6.setSkipText(getResources().getString(2131886117));
            config.P6.setOnAdLoadedCallback(new b0());
            config.P6.setOnAdClosedCallback(new c0());
            config.P6.setOnAdErrorCallback(new d0());
            config.P6.loadAd();
            L();
            return;
        }
        if (u1 != 5 && config.Y6 != 1) {
            Interstitial interstitial2 = new Interstitial(getApplicationContext(), config.f36z6);
            config.P6 = interstitial2;
            interstitial2.setMute(true);
            if (!config.N6.booleanValue()) {
                config.P6.setAutoPlay(false);
            }
            config.P6.setBackButtonCanClose(true);
            config.P6.setSkipText(getResources().getString(2131886117));
            config.P6.setOnAdLoadedCallback(new z());
            config.P6.setOnAdErrorCallback(new a0());
            config.P6.loadAd();
            return;
        }
        String str = u1 == 2 ? config.f36z6 : null;
        ScaleAnimation scaleAnimation = new ScaleAnimation(1.0f, 0.3f, 1.0f, 0.3f, 1, 0.5f, 1, 0.0f);
        scaleAnimation.setFillAfter(true);
        scaleAnimation.setDuration(500L);
        scaleAnimation.setAnimationListener(new y(str));
        ImageView imageView = (ImageView) findViewById(2131362554);
        WebView webView = (WebView) findViewById(2131363610);
        if (webView.getVisibility() == 0) {
            webView.setVisibility(8);
            findViewById(2131363529).setVisibility(8);
            findViewById(2131363154).setLayoutParams(new LinearLayout.LayoutParams(-1, -1));
            D(str);
            return;
        }
        if (imageView.getVisibility() == 0) {
            imageView.startAnimation(scaleAnimation);
            return;
        }
        findViewById(2131363529).setVisibility(8);
        findViewById(2131363154).setLayoutParams(new LinearLayout.LayoutParams(-1, -1));
        D(str);
    }

    private void M() {
        int i2;
        if (this.a.f75x5 <= 0) {
            K();
            return;
        }
        int i3 = this.H.getInt("rt_n", 0);
        if (i3 == -1) {
            K();
            return;
        }
        int i4 = i3 + 1;
        SharedPreferences.Editor edit = this.H.edit();
        edit.putInt("rt_n", i4);
        edit.commit();
        config configVar = this.a;
        int i7 = configVar.f75x5;
        if (i4 < i7) {
            K();
            return;
        }
        if (i4 != i7 && ((i2 = configVar.f77y5) <= 0 || (i4 - i7) % i2 != 0)) {
            K();
            return;
        }
        AlertDialog.Builder builder = new AlertDialog.Builder(this);
        RatingBar ratingBar = new RatingBar(this);
        if (this.a.f79z5 == 1) {
            ratingBar.setNumStars(5);
            try {
                if (!this.f.equals("")) {
                    LayerDrawable layerDrawable = (LayerDrawable) ratingBar.getProgressDrawable();
                    layerDrawable.getDrawable(2).setColorFilter(Color.parseColor("#" + this.f), PorterDuff.Mode.SRC_ATOP);
                    layerDrawable.getDrawable(1).setColorFilter(Color.parseColor("#" + this.f), PorterDuff.Mode.SRC_ATOP);
                }
            } catch (Exception unused) {
            }
            LinearLayout linearLayout = new LinearLayout(this);
            linearLayout.setLayoutParams(new LinearLayout.LayoutParams(-2, -2));
            linearLayout.setGravity(17);
            linearLayout.addView(ratingBar);
            builder.setView(linearLayout);
        }
        builder.setCancelable(false);
        builder.setPositiveButton(this.a.f71v5.equals("") ? getResources().getString(2131886114) : this.a.f71v5, new m(ratingBar));
        builder.setNegativeButton(this.a.f73w5.equals("") ? getResources().getString(2131886227) : this.a.f73w5, new n());
        if (!this.a.f67t5.equals("")) {
            builder.setTitle(this.a.f67t5);
        }
        if (!this.a.f69u5.equals("")) {
            builder.setMessage(this.a.f69u5);
        }
        AlertDialog create = builder.create();
        if (!this.f.equals("")) {
            create.setOnShowListener(new o(create));
        }
        try {
            create.show();
        } catch (Exception unused2) {
        }
        try {
            ((TextView) create.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
        } catch (Exception unused3) {
        }
    }

    public void N() {
        throw new UnsupportedOperationException("Method not decompiled: com.eugene.hymnesetlouanges.empezar.N():void");
    }

    public void O() {
        throw new UnsupportedOperationException("Method not decompiled: com.eugene.hymnesetlouanges.empezar.O():void");
    }

    public void m() {
        startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://play.google.com/store/apps/details?id=" + this.a.b3 + "&referrer=" + this.a.c3)));
        new config.w0(config.f23m6 + "/srv/acad.php?idapp=3014518&idusu=" + this.j + "&tipo=2&ref=" + this.a.c3, "Android Vinebre Software").execute(new String[0]);
    }

    public void n(java.lang.Boolean r22, com.appnext.nativeads.NativeAd r23) {
        throw new UnsupportedOperationException("Method not decompiled: com.eugene.hymnesetlouanges.empezar.n(java.lang.Boolean, com.appnext.nativeads.NativeAd):void");
    }

    public boolean o() {
        return GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(this) == 0;
    }

    public void r() {
        throw new UnsupportedOperationException("Method not decompiled: com.eugene.hymnesetlouanges.empezar.r():void");
    }

    public void s(FormError formError) {
        if (formError != null) {
            Log.e("ara", String.format("%s: %s", Integer.valueOf(formError.getErrorCode()), formError.getMessage()));
        } else {
            Log.e("ara", "Consent has been gathered");
        }
        config.f10a7 = this.N.getPrivacyOptionsRequirementStatus() == ConsentInformation.PrivacyOptionsRequirementStatus.REQUIRED;
        N();
    }

    public void t() {
        UserMessagingPlatform.loadAndShowConsentFormIfRequired(this, new ConsentForm.OnConsentFormDismissedListener() {
            public final void onConsentFormDismissed(FormError formError) {
                empezar.this.s(formError);
            }
        });
    }

    public void u(FormError formError) {
        Log.e("ara", String.format("%s: %s", Integer.valueOf(formError.getErrorCode()), formError.getMessage()));
        N();
    }

    void A() {
        if (this.a.E > 0 && this.H.getInt("fondo_v_act", 0) != this.a.E) {
            startService(new Intent(this, (Class<?>) s_cargar_fondo.class));
        }
        Boolean valueOf = Boolean.valueOf(this.a.H > 0 && this.H.getInt("v_ico_perfil_act", 0) != this.a.H);
        Boolean valueOf2 = Boolean.valueOf(this.a.I > 0 && this.H.getInt("v_ico_privados_act", 0) != this.a.I);
        Boolean valueOf3 = Boolean.valueOf(this.a.J > 0 && this.H.getInt("v_ico_foto_act", 0) != this.a.J);
        Boolean valueOf4 = Boolean.valueOf(this.a.K > 0 && this.H.getInt("v_ico_video_act", 0) != this.a.K);
        Boolean valueOf5 = Boolean.valueOf(this.a.L > 0 && this.H.getInt("v_ico_emotic_act", 0) != this.a.L);
        Boolean valueOf6 = Boolean.valueOf(this.a.M > 0 && this.H.getInt("v_ico_enviar_act", 0) != this.a.M);
        if (valueOf.booleanValue() || valueOf2.booleanValue() || valueOf3.booleanValue() || valueOf4.booleanValue() || valueOf5.booleanValue() || valueOf6.booleanValue()) {
            Intent intent = new Intent(this, (Class<?>) s_cargar_icos_gen.class);
            intent.putExtra("act_ico_perfil", valueOf);
            intent.putExtra("act_ico_privados", valueOf2);
            intent.putExtra("act_ico_foto", valueOf3);
            intent.putExtra("act_ico_video", valueOf4);
            intent.putExtra("act_ico_emotic", valueOf5);
            intent.putExtra("act_ico_enviar", valueOf6);
            startService(intent);
        }
        config configVar = this.a;
        int i2 = configVar.T4;
        if (i2 == 2 && configVar.X1) {
            startService(new Intent(this, (Class<?>) s_cargar_icos.class));
            q();
            return;
        }
        if (i2 == 1 && configVar.y > 0 && this.H.getInt("slider_v_act", 0) != this.a.y) {
            try {
                startService(new Intent(this, (Class<?>) s_cargar_sliderheader.class));
            } catch (Exception unused) {
            }
        }
        q();
    }

    void B() {
        String v2 = v("sit");
        String v3 = v("vsi");
        if (v3.equals("")) {
            v3 = "0";
        }
        if (v2.equals("")) {
            C();
            return;
        }
        SharedPreferences.Editor edit = this.H.edit();
        edit.putString("sit", v2);
        edit.putString("vsi", v3);
        edit.commit();
        if (v2.equals("0")) {
            C();
            return;
        }
        if (!v2.equals("1")) {
            C();
            return;
        }
        if (Integer.parseInt(v3) > Integer.parseInt(this.H.getString("vsi_act", "0"))) {
            new b1().execute(v3, "in");
        } else {
            C();
        }
    }

    void C() {
        String v2 = v("sot");
        String v3 = v("vso");
        if (v3.equals("")) {
            v3 = "0";
        }
        if (v2.equals("")) {
            y();
            return;
        }
        SharedPreferences.Editor edit = this.H.edit();
        edit.putString("sot", v2);
        edit.putString("vso", v3);
        edit.commit();
        if (v2.equals("0")) {
            y();
            return;
        }
        if (!v2.equals("1")) {
            y();
            return;
        }
        if (Integer.parseInt(v3) > Integer.parseInt(this.H.getString("vso_act", "0"))) {
            new b1().execute(v3, "out");
        } else {
            y();
        }
    }

    void E(String str, String str2) {
        AlertDialog.Builder builder = new AlertDialog.Builder(this);
        builder.setCancelable(false).setPositiveButton(getString(2131886286), new j0()).setMessage(str2);
        if (!str.equals("")) {
            builder.setTitle(str);
        }
        AlertDialog create = builder.create();
        if (!this.f.equals("")) {
            create.setOnShowListener(new k0(create));
        }
        try {
            create.show();
        } catch (Exception unused) {
        }
        try {
            ((TextView) create.findViewById(R.id.message)).setTypeface(Typeface.MONOSPACE);
        } catch (Exception unused2) {
        }
    }

    void F(int i2) {
        int i3 = this.a.N;
        if (i3 == 1) {
            ProgressDialog progressDialog = new ProgressDialog(this);
            this.B = progressDialog;
            progressDialog.setMessage(getString(i2));
            this.B.setIndeterminate(true);
            if (!this.d.equals("")) {
                this.B.setOnShowListener(new l0());
            }
            try {
                this.B.show();
                return;
            } catch (Exception unused) {
                return;
            }
        }
        if (i3 == 2) {
            ProgressBar progressBar = (ProgressBar) findViewById(2131363068);
            if (progressBar.getVisibility() == 8) {
                int i4 = this.a.P;
                int F = i4 == 0 ? config.F(this, 40) : i4 == 1 ? config.F(this, 80) : config.F(this, 120);
                FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(F, F);
                int i7 = this.a.O;
                if (i7 == 1) {
                    layoutParams.gravity = 49;
                } else if (i7 == 2) {
                    layoutParams.gravity = 8388661;
                } else if (i7 == 3) {
                    layoutParams.gravity = 8388629;
                } else if (i7 == 4) {
                    layoutParams.gravity = 8388693;
                } else if (i7 == 5) {
                    layoutParams.gravity = 81;
                } else if (i7 == 6) {
                    layoutParams.gravity = 8388691;
                } else if (i7 == 7) {
                    layoutParams.gravity = 8388627;
                } else if (i7 == 8) {
                    layoutParams.gravity = 8388659;
                } else {
                    layoutParams.gravity = 17;
                }
                int F2 = config.F(this, 40);
                layoutParams.setMargins(F2, F2, F2, F2);
                progressBar.setLayoutParams(layoutParams);
                config.b1(progressBar, this.a.Q);
                progressBar.setVisibility(0);
            }
        }
    }

    void G() {
        int i2;
        findViewById(2131362554).setVisibility(8);
        WebView webView = (WebView) findViewById(2131363610);
        webView.setOnTouchListener(new r0());
        int i3 = 0;
        webView.setVisibility(0);
        Bitmap bitmap = null;
        try {
            InputStream open = getResources().getAssets().open("altres/" + this.h);
            bitmap = BitmapFactory.decodeStream(open);
            open.close();
        } catch (Exception | OutOfMemoryError unused) {
        }
        if (bitmap != null) {
            Display defaultDisplay = ((WindowManager) getSystemService("window")).getDefaultDisplay();
            Point point = new Point();
            defaultDisplay.getSize(point);
            int F = (this.a.A ? config.F(this, 10) : 0) * 2;
            int i4 = point.x - F;
            int i7 = point.y - F;
            int F2 = config.F(this, 25);
            int identifier = getResources().getIdentifier("status_bar_height", "dimen", CredentialsData.CREDENTIALS_TYPE_ANDROID);
            if (identifier > 0) {
                F2 = getResources().getDimensionPixelSize(identifier);
            }
            int i8 = i7 - F2;
            int height = bitmap.getHeight();
            i2 = bitmap.getWidth();
            int i9 = this.a.C;
            int i10 = 1;
            if (i9 == 1) {
                if (i2 > i4) {
                    height = (height * i4) / i2;
                    i2 = i4;
                    i3 = 1;
                }
                if (height > i8) {
                    i2 = (i2 * i8) / height;
                    height = i8;
                } else {
                    i10 = i3;
                }
                if (i10 == 0) {
                    i3 = (height * i4) / i2;
                    if (i3 > i8) {
                        i2 = (i2 * i8) / height;
                        i3 = i8;
                    }
                    i2 = i4;
                }
                i3 = height;
            } else if (i9 == 2) {
                if (i2 < i4) {
                    i3 = (height * i4) / i2;
                    i2 = i4;
                } else {
                    i3 = height;
                }
                if (i3 < i8) {
                    i2 = (i2 * i8) / i3;
                    i3 = i8;
                }
            } else {
                if (i9 == 3) {
                    i3 = i8;
                    i2 = i4;
                }
                i3 = height;
            }
        } else {
            i2 = 0;
        }
        String str = "";
        if (!this.H.getString("c1_sp", "").equals("")) {
            str = "background: #" + this.H.getString("c1_sp", "").substring(2) + ";background: linear-gradient(#" + this.H.getString("c1_sp", "").substring(2) + ", #" + this.H.getString("c2_sp", "").substring(2) + ");";
        }
        webView.loadDataWithBaseURL("file:///android_asset/altres/", "<html style='height:100%;margin:0;padding:0;'><head></head><body style='" + str + "height:100%;margin:0;padding:0;'><table style='border:0;width:100%;height:100%;'><tr><td align='center'><img style='padding:0;margin:0;width:" + config.d1(this, i2) + "px;height:" + config.d1(this, i3) + "px;' src='" + this.h + "'></td></tr></table></body></html>", "text/html", "utf-8", null);
    }

    void H() {
        if (this.a.N == 1) {
            try {
                this.B.dismiss();
            } catch (Exception unused) {
            }
        }
    }

    void J() {
        AlertDialog.Builder builder = new AlertDialog.Builder(this);
        this.E = builder;
        builder.setTitle(getResources().getString(2131886290));
        View inflate = getLayoutInflater().inflate(2131558492, (ViewGroup) null);
        ((TextView) inflate.findViewById(2131362864)).setText(getResources().getString(2131886292));
        this.L = (EditText) inflate.findViewById(2131362270);
        if (this.v) {
            inflate.findViewById(2131362865).setVisibility(0);
        }
        this.K = (CheckBox) inflate.findViewById(2131363221);
        if (!this.f.equals("")) {
            config.G(this.L, Boolean.valueOf(!config.J("#" + this.c)), this.f);
            config.q(this.K, this.f);
        }
        this.K.setChecked(this.H.getBoolean("pwd_nomostrarmas_def", true));
        this.E.setView(inflate);
        this.E.setCancelable(true);
        this.E.setPositiveButton(getString(2131886114), new m0());
        this.E.setNegativeButton(getString(2131886227), new n0());
        this.E.setOnCancelListener(new o0());
        AlertDialog create = this.E.create();
        if (!this.f.equals("")) {
            create.setOnShowListener(new p0(create));
        }
        try {
            create.show();
        } catch (Exception unused) {
        }
    }

    protected void L() {
        if (this.H.getBoolean("pwd_validado", true)) {
            r();
        } else {
            J();
        }
    }

    @Override
    public void onBackPressed() {
        if (findViewById(2131363154).getVisibility() != 0) {
            super.onBackPressed();
        } else {
            if (this.q) {
                return;
            }
            this.q = true;
            L();
        }
    }

    @Override
    public void onConfigurationChanged(Configuration configuration) {
        if (findViewById(2131363154).getVisibility() == 0) {
            findViewById(2131363529).setVisibility(8);
            findViewById(2131362554).setVisibility(8);
            ((ImageView) findViewById(2131362554)).setImageBitmap(null);
            findViewById(2131363610).setVisibility(8);
            findViewById(2131362961).setVisibility(8);
            findViewById(2131361820).setVisibility(8);
        } else if (findViewById(2131363610).getVisibility() == 0) {
            G();
        }
        super.onConfigurationChanged(configuration);
    }

    @Override
    public void onCreate(android.os.Bundle r11) {
        throw new UnsupportedOperationException("Method not decompiled: com.eugene.hymnesetlouanges.empezar.onCreate(android.os.Bundle):void");
    }

    @Override
    public void onRequestPermissionsResult(int i2, String[] strArr, int[] iArr) {
        if (i2 == 3) {
            boolean Z0 = config.Z0(this);
            if (((Z0 && iArr.length > 0 && ((strArr[0].equals("android.permission.ACCESS_FINE_LOCATION") || strArr[0].equals("android.permission.ACCESS_COARSE_LOCATION")) && iArr[0] == 0)) || ((Z0 && iArr.length > 1 && ((strArr[1].equals("android.permission.ACCESS_FINE_LOCATION") || strArr[1].equals("android.permission.ACCESS_COARSE_LOCATION")) && iArr[1] == 0)) || (Z0 && iArr.length > 2 && ((strArr[2].equals("android.permission.ACCESS_FINE_LOCATION") || strArr[2].equals("android.permission.ACCESS_COARSE_LOCATION")) && iArr[2] == 0)))) && (getPackageManager().checkPermission("android.permission.ACCESS_FINE_LOCATION", getPackageName()) == 0 || getPackageManager().checkPermission("android.permission.ACCESS_COARSE_LOCATION", getPackageName()) == 0)) {
                try {
                    FusedLocationProviderClient fusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this);
                    this.M = fusedLocationProviderClient;
                    fusedLocationProviderClient.getLastLocation().addOnSuccessListener(this, new l());
                } catch (Exception unused) {
                }
            }
            M();
        }
    }

    @Override
    public void onResume() {
        super.onResume();
        config.X0(this);
        if (this.w) {
            K();
        } else if (this.x) {
            try {
                config.P6 = null;
            } catch (Exception unused) {
            }
            this.q = true;
            L();
        }
    }

    String p(String str, int i2, SharedPreferences.Editor editor) {
        if (!this.i.containsKey(str)) {
            return "";
        }
        String str2 = (String) this.i.get(str);
        if (i2 == 1) {
            editor.putInt(str, Integer.parseInt(str2));
            return str2;
        }
        if (i2 == 2) {
            editor.putString(str, str2);
            return str2;
        }
        if (i2 == 3) {
            editor.putFloat(str, Float.parseFloat(str2));
            return str2;
        }
        if (i2 != 10) {
            return str2;
        }
        editor.putBoolean(str, true);
        editor.putBoolean(str + "_g", true);
        return str2;
    }

    void q() {
        findViewById(2131363068).setVisibility(8);
        if (this.o) {
            String v2 = v("fus");
            if (!v2.equals("")) {
                SharedPreferences.Editor edit = this.H.edit();
                edit.putString("fultsync", v2);
                edit.commit();
            }
        }
        if (!this.i.containsKey("espera")) {
            O();
            return;
        }
        this.l = Integer.parseInt(v("espera"));
        ProgressDialog progressDialog = new ProgressDialog(this);
        this.C = progressDialog;
        progressDialog.setCancelable(true);
        this.C.setCanceledOnTouchOutside(false);
        this.C.setTitle(getResources().getString(2131886206));
        this.C.setMessage(this.l + "s.");
        this.C.setIndeterminate(true);
        this.C.setOnCancelListener(new s0());
        try {
            this.C.show();
        } catch (Exception unused) {
        }
        Thread thread = new Thread(new u0(new t0()));
        this.J = thread;
        thread.start();
    }

    String v(String str) {
        if (this.y) {
            return "";
        }
        try {
            if (this.i.containsKey(str)) {
                return (String) this.i.get(str);
            }
        } catch (Exception unused) {
        }
        return "";
    }

    void w() {
        String v2 = v("ft");
        String v3 = v("vfu");
        if (v3.equals("")) {
            v3 = "0";
        }
        if (v2.equals("")) {
            B();
            return;
        }
        SharedPreferences.Editor edit = this.H.edit();
        edit.putString("ft", v2);
        edit.putString("vfu", v3);
        edit.commit();
        if (v2.equals("0")) {
            this.a.R(0);
            B();
        } else {
            if (!v2.equals("1")) {
                this.a.R(Integer.parseInt(v2));
                B();
                return;
            }
            if (Integer.parseInt(v3) > Integer.parseInt(this.H.getString("vfu_act", "0"))) {
                new x0().execute(v3);
            } else {
                this.a.R(1);
                B();
            }
        }
    }

    void x() {
        String v2 = v("icohome");
        if (v2.equals("1")) {
            new y0().execute(v("vih"));
        } else if (!v2.equals("2")) {
            A();
        } else {
            deleteFile("icohome");
            A();
        }
    }

    void y() {
        config configVar = this.a;
        if (!configVar.d0 || configVar.e0 <= this.H.getInt("ofics_imgperso_v_act", 0)) {
            config configVar2 = this.a;
            if (!configVar2.Z || configVar2.a0 <= this.H.getInt("busc_imgperso_v_act", 0)) {
                config configVar3 = this.a;
                if (!configVar3.R || configVar3.S <= this.H.getInt("share_imgperso_v_act", 0)) {
                    config configVar4 = this.a;
                    if (!configVar4.h0 || configVar4.i0 <= this.H.getInt("exit_imgperso_v_act", 0)) {
                        config configVar5 = this.a;
                        if (!configVar5.l0 || configVar5.m0 <= this.H.getInt("notif_imgperso_v_act", 0)) {
                            config configVar6 = this.a;
                            if (!configVar6.p0 || configVar6.q0 <= this.H.getInt("perfil_imgperso_v_act", 0)) {
                                config configVar7 = this.a;
                                if (!configVar7.V || configVar7.W <= this.H.getInt("search_imgperso_v_act", 0)) {
                                    config configVar8 = this.a;
                                    if (!configVar8.u0 || configVar8.v0 <= this.H.getInt("sinads_imgperso_v_act", 0)) {
                                        z();
                                        return;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        new z0().execute(new String[0]);
    }

    void z() {
        boolean z2;
        if (config.f29s6.length <= 0) {
            x();
            return;
        }
        int i2 = 0;
        while (true) {
            config.x0[] x0VarArr = config.f29s6;
            if (i2 >= x0VarArr.length) {
                z2 = false;
                break;
            }
            if (x0VarArr[i2].d > this.H.getInt("mb_it" + config.f29s6[i2].b + "_v_act", 0)) {
                z2 = true;
                break;
            }
            i2++;
        }
        if (z2) {
            new a1().execute(new String[0]);
        } else {
            x();
        }
    }
}