导航菜单

页面标题

页面副标题

FileWipe Pro v3.0.0 - f.java 源代码

正在查看: FileWipe Pro v3.0.0 应用的 f.java JAVA 源代码文件

本页面展示 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.e;
import com.applovin.impl.i1;
import com.applovin.impl.l4;
import com.applovin.sdk.AppLovinSdkUtils;
import com.mbridge.msdk.playercommon.exoplayer2.C;

class f extends Dialog implements i1 {

    private final Activity f2181a;

    private final com.applovin.impl.sdk.k f2182b;

    private final com.applovin.impl.sdk.o f2183c;

    private final b f2184d;

    private final com.applovin.impl.sdk.ad.a f2185e;

    private RelativeLayout f2186f;

    private e f2187g;

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

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

        @Override
        public void onAnimationRepeat(Animation animation) {
        }

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

    public f(com.applovin.impl.sdk.ad.a aVar, b bVar, Activity activity, com.applovin.impl.sdk.k kVar) {
        super(activity, R.style.Theme.Translucent.NoTitleBar);
        if (aVar == null) {
            throw new IllegalArgumentException("No ad specified");
        }
        if (bVar == null) {
            throw new IllegalArgumentException("No main view specified");
        }
        if (kVar == null) {
            throw new IllegalArgumentException("No sdk specified");
        }
        if (activity == null) {
            throw new IllegalArgumentException("No activity specified");
        }
        this.f2182b = kVar;
        this.f2183c = kVar.O();
        this.f2181a = activity;
        this.f2184d = bVar;
        this.f2185e = aVar;
        requestWindowFeature(1);
        setCancelable(false);
    }

    private void g() {
        this.f2181a.runOnUiThread(new u(this, 1));
    }

    @Override
    public void dismiss(String str) {
        this.f2181a.runOnUiThread(new u(this, 0));
    }

    @Override
    public void onBackPressed() {
        this.f2184d.a("javascript:al_onBackPressed();");
        dismiss("expanded_ad_dialog_back_button");
    }

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

    @Override
    public void onStart() {
        super.onStart();
        try {
            Window window = getWindow();
            if (window != null) {
                window.setFlags(this.f2181a.getWindow().getAttributes().flags, this.f2181a.getWindow().getAttributes().flags);
                window.addFlags(C.DEFAULT_MUXED_BUFFER_SIZE);
            } else if (com.applovin.impl.sdk.o.a()) {
                this.f2183c.b("ExpandedAdDialog", "Unable to turn on hardware acceleration - window is null");
            }
        } catch (Throwable th) {
            if (com.applovin.impl.sdk.o.a()) {
                this.f2183c.a("ExpandedAdDialog", "Setting window flags failed.", th);
            }
        }
    }

    private void a() {
        this.f2184d.a("javascript:al_onCloseTapped();");
        dismiss("expanded_ad_dialog_close_button");
    }

    public void b(View view) {
        if (this.f2187g.isClickable()) {
            this.f2187g.performClick();
        }
    }

    private void d() {
        RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-1, -1);
        layoutParams.addRule(13);
        this.f2184d.setLayoutParams(layoutParams);
        RelativeLayout relativeLayout = new RelativeLayout(this.f2181a);
        this.f2186f = relativeLayout;
        relativeLayout.setLayoutParams(new RelativeLayout.LayoutParams(-1, -1));
        this.f2186f.setBackgroundColor(-1157627904);
        this.f2186f.addView(this.f2184d);
        if (!this.f2185e.t1()) {
            a(this.f2185e.n1());
            g();
        }
        setContentView(this.f2186f);
    }

    public void e() {
        this.f2186f.removeView(this.f2184d);
        super.dismiss();
    }

    public void f() {
        try {
            if (this.f2187g == null) {
                a();
            }
            this.f2187g.setVisibility(0);
            this.f2187g.bringToFront();
            AlphaAnimation alphaAnimation = new AlphaAnimation(0.0f, 1.0f);
            alphaAnimation.setDuration(300L);
            alphaAnimation.setAnimationListener(new a());
            this.f2187g.startAnimation(alphaAnimation);
        } catch (Throwable th) {
            if (com.applovin.impl.sdk.o.a()) {
                this.f2183c.a("ExpandedAdDialog", "Unable to fade in close button", th);
            }
            a();
        }
    }

    public b c() {
        return this.f2184d;
    }

    private void a(e.a aVar) {
        if (this.f2187g != null) {
            if (com.applovin.impl.sdk.o.a()) {
                this.f2183c.k("ExpandedAdDialog", "Attempting to create duplicate close button");
                return;
            }
            return;
        }
        e a10 = e.a(aVar, this.f2181a);
        this.f2187g = a10;
        a10.setVisibility(8);
        final int i10 = 0;
        this.f2187g.setOnClickListener(new View.OnClickListener(this) {

            public final f f2213b;

            {
                this.f2213b = this;
            }

            @Override
            public final void onClick(View view) {
                switch (i10) {
                    case 0:
                        this.f2213b.a(view);
                        break;
                    default:
                        this.f2213b.b(view);
                        break;
                }
            }
        });
        this.f2187g.setClickable(false);
        int a11 = a(((Integer) this.f2182b.a(l4.f3023x1)).intValue());
        RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(a11, a11);
        layoutParams.addRule(10);
        com.applovin.impl.sdk.k kVar = this.f2182b;
        l4 l4Var = l4.A1;
        layoutParams.addRule(((Boolean) kVar.a(l4Var)).booleanValue() ? 9 : 11);
        this.f2187g.a(a11);
        int a12 = a(((Integer) this.f2182b.a(l4.f3038z1)).intValue());
        int a13 = a(((Integer) this.f2182b.a(l4.f3030y1)).intValue());
        layoutParams.setMargins(a13, a12, a13, 0);
        this.f2186f.addView(this.f2187g, layoutParams);
        this.f2187g.bringToFront();
        int a14 = a(((Integer) this.f2182b.a(l4.B1)).intValue());
        View view = new View(this.f2181a);
        view.setBackgroundColor(0);
        int i11 = a11 + a14;
        RelativeLayout.LayoutParams layoutParams2 = new RelativeLayout.LayoutParams(i11, i11);
        layoutParams2.addRule(10);
        layoutParams2.addRule(((Boolean) this.f2182b.a(l4Var)).booleanValue() ? 9 : 11);
        layoutParams2.setMargins(a13 - a(5), a12 - a(5), a13 - a(5), 0);
        final int i12 = 1;
        view.setOnClickListener(new View.OnClickListener(this) {

            public final f f2213b;

            {
                this.f2213b = this;
            }

            @Override
            public final void onClick(View view2) {
                switch (i12) {
                    case 0:
                        this.f2213b.a(view2);
                        break;
                    default:
                        this.f2213b.b(view2);
                        break;
                }
            }
        });
        this.f2186f.addView(view, layoutParams2);
        view.bringToFront();
    }

    public com.applovin.impl.sdk.ad.a b() {
        return this.f2185e;
    }

    public void a(View view) {
        a();
    }

    private int a(int i10) {
        return AppLovinSdkUtils.dpToPx(this.f2181a, i10);
    }
}