APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:Consulta Recibo Luz Guia
版本号:8.0
包名称:com.satruk.consultareciboluzcfe

MD5 校验值:d53ec1a251294bef920c76a08ee856d9

反编译源代码说明

m.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package com.applovin.impl.adview;

import android.R;
import android.app.Activity;
import android.app.Dialog;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.widget.RelativeLayout;
import com.applovin.impl.adview.j;
import com.applovin.sdk.AppLovinSdkUtils;

public class m extends Dialog implements l {
    private final Activity ahM;
    private final d ahN;
    private final com.applovin.impl.sdk.ad.a ahO;
    private RelativeLayout ahP;
    private j ahQ;
    private final com.applovin.impl.sdk.x logger;
    private final com.applovin.impl.sdk.n sdk;

    public class AnonymousClass1 implements Animation.AnimationListener {
        public AnonymousClass1() {
        }

        @Override
        public void onAnimationEnd(Animation animation) {
            m.this.ahQ.setClickable(true);
        }

        @Override
        public void onAnimationRepeat(Animation animation) {
        }

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

    public m(com.applovin.impl.sdk.ad.a aVar, d dVar, Activity activity, com.applovin.impl.sdk.n nVar) {
        super(activity, R.style.Theme.Translucent.NoTitleBar);
        if (aVar != null) {
            if (dVar != null) {
                if (nVar != null) {
                    if (activity != null) {
                        this.sdk = nVar;
                        this.logger = nVar.BL();
                        this.ahM = activity;
                        this.ahN = dVar;
                        this.ahO = aVar;
                        requestWindowFeature(1);
                        setCancelable(false);
                        return;
                    }
                    throw new IllegalArgumentException("No activity specified");
                }
                throw new IllegalArgumentException("No sdk specified");
            }
            throw new IllegalArgumentException("No main view specified");
        }
        throw new IllegalArgumentException("No ad specified");
    }

    private int ga(int i) {
        return AppLovinSdkUtils.dpToPx(this.ahM, i);
    }

    public void i(View view) {
        if (this.ahQ.isClickable()) {
            this.ahQ.performClick();
        }
    }

    public void j(View view) {
        rG();
    }

    private void rF() {
        RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-1, -1);
        layoutParams.addRule(13);
        this.ahN.setLayoutParams(layoutParams);
        RelativeLayout relativeLayout = new RelativeLayout(this.ahM);
        this.ahP = relativeLayout;
        relativeLayout.setLayoutParams(new RelativeLayout.LayoutParams(-1, -1));
        this.ahP.setBackgroundColor(-1157627904);
        this.ahP.addView(this.ahN);
        if (!this.ahO.FL()) {
            a(this.ahO.FM());
            rH();
        }
        setContentView(this.ahP);
    }

    private void rG() {
        this.ahN.bq("javascript:al_onCloseTapped();");
        dismiss();
    }

    private void rH() {
        this.ahM.runOnUiThread(new d6tPitE3DTk1erIZXx(this, 0));
    }

    public void rK() {
        try {
            if (this.ahQ == null) {
                rG();
            }
            this.ahQ.setVisibility(0);
            this.ahQ.bringToFront();
            AlphaAnimation alphaAnimation = new AlphaAnimation(0.0f, 1.0f);
            alphaAnimation.setDuration(300L);
            alphaAnimation.setAnimationListener(new Animation.AnimationListener() {
                public AnonymousClass1() {
                }

                @Override
                public void onAnimationEnd(Animation animation) {
                    m.this.ahQ.setClickable(true);
                }

                @Override
                public void onAnimationRepeat(Animation animation) {
                }

                @Override
                public void onAnimationStart(Animation animation) {
                }
            });
            this.ahQ.startAnimation(alphaAnimation);
        } catch (Throwable th) {
            if (com.applovin.impl.sdk.x.Fk()) {
                this.logger.c("ExpandedAdDialog", "Unable to fade in close button", th);
            }
            rG();
        }
    }

    public void rL() {
        this.ahP.removeView(this.ahN);
        super.dismiss();
    }

    @Override
    public void dismiss() {
        com.applovin.impl.sdk.d.d statsManagerHelper = this.ahN.getStatsManagerHelper();
        if (statsManagerHelper != null) {
            statsManagerHelper.JN();
        }
        this.ahM.runOnUiThread(new d6tPitE3DTk1erIZXx(this, 1));
    }

    @Override
    public void onBackPressed() {
        this.ahN.bq("javascript:al_onBackPressed();");
        dismiss();
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        rF();
    }

    @Override
    public void onStart() {
        super.onStart();
        try {
            Window window = getWindow();
            if (window != null) {
                window.setFlags(this.ahM.getWindow().getAttributes().flags, this.ahM.getWindow().getAttributes().flags);
                window.addFlags(16777216);
            } else if (com.applovin.impl.sdk.x.Fk()) {
                this.logger.i("ExpandedAdDialog", "Unable to turn on hardware acceleration - window is null");
            }
        } catch (Throwable th) {
            if (com.applovin.impl.sdk.x.Fk()) {
                this.logger.c("ExpandedAdDialog", "Setting window flags failed.", th);
            }
        }
    }

    public com.applovin.impl.sdk.ad.a rI() {
        return this.ahO;
    }

    public d rJ() {
        return this.ahN;
    }

    private void a(j.a aVar) {
        if (this.ahQ != null) {
            if (com.applovin.impl.sdk.x.Fk()) {
                this.logger.h("ExpandedAdDialog", "Attempting to create duplicate close button");
                return;
            }
            return;
        }
        j a = j.a(aVar, this.ahM);
        this.ahQ = a;
        a.setVisibility(8);
        final int i = 0;
        this.ahQ.setOnClickListener(new View.OnClickListener(this) {
            public final m knZa8G5Dnyom3a;

            {
                this.knZa8G5Dnyom3a = this;
            }

            @Override
            public final void onClick(View view) {
                int i2 = i;
                m mVar = this.knZa8G5Dnyom3a;
                switch (i2) {
                    case 0:
                        mVar.j(view);
                        return;
                    default:
                        mVar.i(view);
                        return;
                }
            }
        });
        this.ahQ.setClickable(false);
        int ga = ga(((Integer) this.sdk.a(com.applovin.impl.sdk.c.b.aMz)).intValue());
        RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(ga, ga);
        layoutParams.addRule(10);
        com.applovin.impl.sdk.n nVar = this.sdk;
        com.applovin.impl.sdk.c.b<Boolean> bVar = com.applovin.impl.sdk.c.b.aMC;
        layoutParams.addRule(((Boolean) nVar.a(bVar)).booleanValue() ? 9 : 11);
        this.ahQ.fZ(ga);
        int ga2 = ga(((Integer) this.sdk.a(com.applovin.impl.sdk.c.b.aMB)).intValue());
        int ga3 = ga(((Integer) this.sdk.a(com.applovin.impl.sdk.c.b.aMA)).intValue());
        layoutParams.setMargins(ga3, ga2, ga3, 0);
        this.ahP.addView(this.ahQ, layoutParams);
        this.ahQ.bringToFront();
        int ga4 = ga(((Integer) this.sdk.a(com.applovin.impl.sdk.c.b.aMD)).intValue());
        View view = new View(this.ahM);
        view.setBackgroundColor(0);
        int i2 = ga + ga4;
        RelativeLayout.LayoutParams layoutParams2 = new RelativeLayout.LayoutParams(i2, i2);
        layoutParams2.addRule(10);
        layoutParams2.addRule(((Boolean) this.sdk.a(bVar)).booleanValue() ? 9 : 11);
        layoutParams2.setMargins(ga3 - ga(5), ga2 - ga(5), ga3 - ga(5), 0);
        final int i3 = 1;
        view.setOnClickListener(new View.OnClickListener(this) {
            public final m knZa8G5Dnyom3a;

            {
                this.knZa8G5Dnyom3a = this;
            }

            @Override
            public final void onClick(View view2) {
                int i22 = i3;
                m mVar = this.knZa8G5Dnyom3a;
                switch (i22) {
                    case 0:
                        mVar.j(view2);
                        return;
                    default:
                        mVar.i(view2);
                        return;
                }
            }
        });
        this.ahP.addView(view, layoutParams2);
        view.bringToFront();
    }
}