ZStore v1.7版本的 MD5 值为:ca9bb200afd8d690876bd39318f8215c

以下内容为反编译后的 b.java 源代码,内容仅作参考


package com.applovin.impl.adview.activity.b;

import android.app.Activity;
import android.os.SystemClock;
import android.view.ViewGroup;
import androidx.annotation.Nullable;
import com.applovin.impl.sdk.e.ac;
import com.applovin.impl.sdk.e.r;
import com.applovin.impl.sdk.o;
import com.applovin.impl.sdk.utils.Utils;
import com.applovin.impl.sdk.x;
import com.applovin.sdk.AppLovinAdClickListener;
import com.applovin.sdk.AppLovinAdDisplayListener;
import com.applovin.sdk.AppLovinAdVideoPlaybackListener;
import com.iab.omid.library.applovin.adsession.FriendlyObstructionPurpose;
import java.util.ArrayList;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;

public class b extends a {
    private final AtomicBoolean A;
    private final com.applovin.impl.adview.activity.a.b x;
    private com.applovin.impl.sdk.utils.f y;
    private long z;

    public b(com.applovin.impl.sdk.ad.e eVar, Activity activity, @Nullable Map<String, Object> map, o oVar, AppLovinAdClickListener appLovinAdClickListener, AppLovinAdDisplayListener appLovinAdDisplayListener, AppLovinAdVideoPlaybackListener appLovinAdVideoPlaybackListener) {
        super(eVar, activity, map, oVar, appLovinAdClickListener, appLovinAdDisplayListener, appLovinAdVideoPlaybackListener);
        this.x = new com.applovin.impl.adview.activity.a.b(this.a, this.e, this.b);
        this.A = new AtomicBoolean();
    }

    @Override
    public void d() {
        a((ViewGroup) null);
    }

    @Override
    public void a(@Nullable ViewGroup viewGroup) {
        this.x.a(this.h, this.g, this.f, viewGroup);
        a(false);
        if (this.g != null) {
            this.g.a();
        }
        this.f.renderAd(this.a);
        a("javascript:al_onPoststitialShow();", this.a.V());
        if (u()) {
            this.z = c();
            if (this.z > 0) {
                x xVar = this.c;
                if (x.a()) {
                    this.c.b("AppLovinFullscreenActivity", "Scheduling timer for ad fully watched in " + this.z + "ms...");
                }
                this.y = com.applovin.impl.sdk.utils.f.a(this.z, this.b, new Runnable() {
                    @Override
                    public void run() {
                        x xVar2 = b.this.c;
                        if (x.a()) {
                            b.this.c.b("AppLovinFullscreenActivity", "Marking ad as fully watched");
                        }
                        b.this.A.set(true);
                    }
                });
            }
        }
        if (this.h != null) {
            if (this.a.t() >= 0) {
                a(this.h, this.a.t(), new Runnable() {
                    @Override
                    public void run() {
                        b.this.k = SystemClock.elapsedRealtime();
                    }
                });
            } else {
                this.h.setVisibility(0);
            }
        }
        v();
        this.b.N().a(new ac(this.b, new Runnable() {
            @Override
            public void run() {
                ArrayList arrayList = new ArrayList();
                if (b.this.h != null) {
                    arrayList.add(new com.applovin.impl.sdk.a.d(b.this.h, FriendlyObstructionPurpose.CLOSE_AD, "close button"));
                }
                if (b.this.g != null && b.this.g.b()) {
                    arrayList.add(new com.applovin.impl.sdk.a.d(b.this.g, FriendlyObstructionPurpose.NOT_VISIBLE, b.this.g.getIdentifier()));
                }
                b.this.a.o().a(b.this.f, arrayList);
            }
        }), r.b.MAIN, TimeUnit.SECONDS.toMillis(1L));
        w();
        super.b(Utils.isVideoMutedInitially(this.b));
    }

    @Override
    public void e() {
    }

    @Override
    public void a(long j) {
    }

    @Override
    public void h() {
        n();
        if (this.y != null) {
            this.y.a();
            this.y = null;
        }
        super.h();
    }

    @Override
    protected boolean t() {
        return false;
    }

    @Override
    protected boolean s() {
        if (u()) {
            return this.A.get();
        }
        return true;
    }

    @Override
    public void a() {
    }

    @Override
    public void b() {
    }

    @Override
    protected void n() {
        int i;
        int i2 = 100;
        boolean s = s();
        if (u()) {
            if (!s && this.y != null) {
                i2 = (int) Math.min(100.0d, ((this.z - this.y.b()) / this.z) * 100.0d);
            }
            x xVar = this.c;
            if (x.a()) {
                this.c.b("AppLovinFullscreenActivity", "Ad engaged at " + i2 + "%");
                i = i2;
            } else {
                i = i2;
            }
        } else {
            i = 100;
        }
        super.a(i, false, s, -2L);
    }

    @Override
    protected void v() {
        long j;
        long ah;
        if (this.a.ag() >= 0 || this.a.ah() >= 0) {
            if (this.a.ag() >= 0) {
                ah = this.a.ag();
            } else {
                if (this.a.ai()) {
                    int l = (int) ((com.applovin.impl.sdk.ad.a) this.a).l();
                    if (l > 0) {
                        j = TimeUnit.SECONDS.toMillis(l) + 0;
                    } else {
                        int t = (int) this.a.t();
                        if (t > 0) {
                            j = TimeUnit.SECONDS.toMillis(t) + 0;
                        }
                    }
                    ah = (long) (j * (this.a.ah() / 100.0d));
                }
                j = 0;
                ah = (long) (j * (this.a.ah() / 100.0d));
            }
            b(ah);
        }
    }

    @Override
    public void x() {
        super.x();
        this.x.a(this.i);
        this.k = SystemClock.elapsedRealtime();
        this.A.set(true);
    }

    private long c() {
        if (this.a instanceof com.applovin.impl.sdk.ad.a) {
            float l = ((com.applovin.impl.sdk.ad.a) this.a).l();
            if (l <= 0.0f) {
                l = (float) this.a.t();
            }
            return (long) (Utils.secondsToMillisLong(l) * (this.a.U() / 100.0d));
        }
        return 0L;
    }
}