Weather Tracker v1.0.0版本的 MD5 值为:3edef27647e42a8ea0e7c0d2dbf56f97

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


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

import android.app.Activity;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.graphics.PointF;
import android.graphics.drawable.AnimatedVectorDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.StrictMode;
import android.os.SystemClock;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.ProgressBar;
import androidx.annotation.Nullable;
import com.applovin.adview.AppLovinAdView;
import com.applovin.communicator.AppLovinCommunicator;
import com.applovin.communicator.AppLovinCommunicatorMessage;
import com.applovin.communicator.AppLovinCommunicatorSubscriber;
import com.applovin.exoplayer2.ab;
import com.applovin.exoplayer2.ak;
import com.applovin.exoplayer2.an;
import com.applovin.exoplayer2.aw;
import com.applovin.exoplayer2.h.u;
import com.applovin.exoplayer2.k.p;
import com.applovin.exoplayer2.l.ai;
import com.applovin.exoplayer2.ui.f;
import com.applovin.impl.adview.AppLovinTouchToClickListener;
import com.applovin.impl.adview.h;
import com.applovin.impl.adview.k;
import com.applovin.impl.adview.n;
import com.applovin.impl.adview.u;
import com.applovin.impl.adview.v;
import com.applovin.impl.adview.w;
import com.applovin.impl.adview.x;
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.StringUtils;
import com.applovin.impl.sdk.utils.z;
import com.applovin.impl.sdk.y;
import com.applovin.sdk.AppLovinAdClickListener;
import com.applovin.sdk.AppLovinAdDisplayListener;
import com.applovin.sdk.AppLovinAdVideoPlaybackListener;
import com.applovin.sdk.AppLovinSdkUtils;
import com.applovin.sdk.R;
import com.iab.omid.library.applovin.adsession.FriendlyObstructionPurpose;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
public class e extends com.applovin.impl.adview.activity.b.a implements AppLovinCommunicatorSubscriber {
    protected final com.applovin.impl.adview.a A;
    @Nullable
    protected final n B;
    @Nullable
    protected h C;
    @Nullable
    protected final ImageView D;
    @Nullable
    protected w E;
    @Nullable
    protected final ProgressBar F;
    @Nullable
    protected ProgressBar G;
    protected final k H;
    protected final k I;
    protected boolean f911J;
    protected long K;
    protected int L;
    protected boolean M;
    protected boolean N;
    private final com.applovin.impl.adview.activity.a.c O;
    private final a P;
    private final Handler Q;
    private final Handler R;
    private final boolean S;
    private long T;
    private final AtomicBoolean U;
    private final AtomicBoolean V;
    private long W;
    private long X;
    protected final com.applovin.exoplayer2.ui.g y;
    protected final aw z;

    private class c implements View.OnClickListener {
        private c() {
        }

        @Override
        public void onClick(View view) {
            e eVar = e.this;
            if (view == eVar.B) {
                if (eVar.t()) {
                    e.this.e();
                    e.this.q();
                    e.this.w.b();
                    return;
                }
                e.this.c();
            } else if (view == eVar.D) {
                eVar.A();
            } else {
                y yVar = eVar.c;
                if (y.a()) {
                    y yVar2 = e.this.c;
                    yVar2.e("AppLovinFullscreenActivity", "Unhandled click on widget: " + view);
                }
            }
        }
    }

    public e(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.O = new com.applovin.impl.adview.activity.a.c(this.a, this.e, this.f907b);
        a aVar = new a();
        this.P = aVar;
        Handler handler = new Handler(Looper.getMainLooper());
        this.Q = handler;
        Handler handler2 = new Handler(Looper.getMainLooper());
        this.R = handler2;
        k kVar = new k(handler, this.f907b);
        this.H = kVar;
        this.I = new k(handler2, this.f907b);
        boolean f = this.a.f();
        this.S = f;
        this.f911J = com.applovin.impl.sdk.utils.w.c(this.f907b);
        this.T = -1L;
        this.U = new AtomicBoolean();
        this.V = new AtomicBoolean();
        this.W = -2L;
        this.X = 0L;
        if (eVar.hasVideoUrl()) {
            c cVar = new c();
            if (eVar.r() >= 0) {
                n nVar = new n(eVar.x(), activity);
                this.B = nVar;
                nVar.setVisibility(8);
                nVar.setOnClickListener(cVar);
            } else {
                this.B = null;
            }
            boolean z = true;
            if (a(this.f911J, oVar)) {
                ImageView imageView = new ImageView(activity);
                this.D = imageView;
                imageView.setScaleType(ImageView.ScaleType.FIT_CENTER);
                imageView.setClickable(true);
                imageView.setOnClickListener(cVar);
                d(this.f911J);
            } else {
                this.D = null;
            }
            String C = eVar.C();
            if (StringUtils.isValidString(C)) {
                x xVar = new x(oVar);
                xVar.a(new WeakReference<>(aVar));
                w wVar = new w(xVar, activity);
                this.E = wVar;
                wVar.a(C);
            } else {
                this.E = null;
            }
            if (f) {
                com.applovin.impl.adview.a aVar2 = new com.applovin.impl.adview.a(activity, ((Integer) oVar.a(com.applovin.impl.sdk.c.b.cY)).intValue(), 16842874);
                this.A = aVar2;
                aVar2.setColor(Color.parseColor("#75FFFFFF"));
                aVar2.setBackgroundColor(Color.parseColor("#00000000"));
                aVar2.setVisibility(8);
                AppLovinCommunicator.getInstance(activity).subscribe(this, "video_caching_failed");
            } else {
                this.A = null;
            }
            final int m = m();
            z = (!((Boolean) oVar.a(com.applovin.impl.sdk.c.b.cI)).booleanValue() || m <= 0) ? false : z;
            if (this.C == null && z) {
                this.C = new h(activity);
                int I = eVar.I();
                this.C.setTextColor(I);
                this.C.setTextSize(((Integer) oVar.a(com.applovin.impl.sdk.c.b.cH)).intValue());
                this.C.setFinishedStrokeColor(I);
                this.C.setFinishedStrokeWidth(((Integer) oVar.a(com.applovin.impl.sdk.c.b.cG)).intValue());
                this.C.setMax(m);
                this.C.setProgress(m);
                kVar.a("COUNTDOWN_CLOCK", TimeUnit.SECONDS.toMillis(1L), new k.a() {
                    @Override
                    public void a() {
                        e eVar2 = e.this;
                        if (eVar2.C != null) {
                            long seconds = m - TimeUnit.MILLISECONDS.toSeconds(eVar2.y.getPlayer().I());
                            if (seconds <= 0) {
                                e.this.o = true;
                            } else if (e.this.E()) {
                                e.this.C.setProgress((int) seconds);
                            }
                        }
                    }

                    @Override
                    public boolean b() {
                        return e.this.E();
                    }
                });
            }
            if (eVar.R()) {
                final Integer num = (Integer) oVar.a(com.applovin.impl.sdk.c.b.cW);
                ProgressBar progressBar = new ProgressBar(activity, null, 16842872);
                this.F = progressBar;
                a(progressBar, eVar.S(), num.intValue());
                kVar.a("PROGRESS_BAR", ((Long) oVar.a(com.applovin.impl.sdk.c.b.cV)).longValue(), new k.a() {
                    @Override
                    public void a() {
                        e eVar2 = e.this;
                        if (eVar2.M) {
                            eVar2.F.setVisibility(8);
                            return;
                        }
                        e.this.F.setProgress((int) ((((float) eVar2.z.I()) / ((float) e.this.K)) * num.intValue()));
                    }

                    @Override
                    public boolean b() {
                        return !e.this.M;
                    }
                });
            } else {
                this.F = null;
            }
            aw a2 = new aw.a(activity).a();
            this.z = a2;
            b bVar = new b();
            a2.a((an.b) bVar);
            a2.c(0);
            com.applovin.exoplayer2.ui.g gVar = new com.applovin.exoplayer2.ui.g(activity);
            this.y = gVar;
            gVar.b();
            gVar.setControllerVisibilityListener(bVar);
            gVar.setPlayer(a2);
            gVar.setOnTouchListener(new AppLovinTouchToClickListener(oVar, com.applovin.impl.sdk.c.b.bb, activity, bVar));
            C();
            return;
        }
        throw new IllegalStateException("Attempting to use fullscreen video ad presenter for non-video ad");
    }

    private void I() {
        w wVar;
        u D = this.a.D();
        if (D == null || !D.e() || this.M || (wVar = this.E) == null) {
            return;
        }
        final boolean z = wVar.getVisibility() == 4;
        final long f = D.f();
        AppLovinSdkUtils.runOnUiThread(new Runnable() {
            @Override
            public void run() {
                if (z) {
                    com.applovin.impl.sdk.utils.x.a(e.this.E, f, (Runnable) null);
                } else {
                    com.applovin.impl.sdk.utils.x.b(e.this.E, f, null);
                }
            }
        });
    }

    public void J() {
        this.O.a(this.i);
        this.k = SystemClock.elapsedRealtime();
    }

    public void A() {
        boolean z = !this.f911J ? 1 : 0;
        this.f911J = z;
        this.z.a(!z ? 1 : 0);
        d(this.f911J);
        a(this.f911J, 0L);
    }

    public void B() {
        F();
        final long W = this.a.W();
        if (W > 0) {
            this.l = 0L;
            final Long l = (Long) this.f907b.a(com.applovin.impl.sdk.c.b.df);
            final Integer num = (Integer) this.f907b.a(com.applovin.impl.sdk.c.b.di);
            ProgressBar progressBar = new ProgressBar(this.e, null, 16842872);
            this.G = progressBar;
            a(progressBar, this.a.V(), num.intValue());
            this.I.a("POSTITIAL_PROGRESS_BAR", l.longValue(), new k.a() {
                @Override
                public void a() {
                    e.this.G.setProgress((int) ((((float) e.this.l) / ((float) W)) * num.intValue()));
                    e.this.l += l.longValue();
                }

                @Override
                public boolean b() {
                    return e.this.l < W;
                }
            });
            this.I.a();
        }
        this.O.a(this.h, this.g, this.f, this.G);
        a("javascript:al_onPoststitialShow(" + this.p + "," + this.q + ");", this.a.X());
        if (this.h != null) {
            if (this.a.t() >= 0) {
                a(this.h, this.a.t(), new Runnable() {
                    @Override
                    public void run() {
                        e.this.k = SystemClock.elapsedRealtime();
                    }
                });
            } else {
                this.h.setVisibility(0);
            }
        }
        ArrayList arrayList = new ArrayList();
        n nVar = this.h;
        if (nVar != null) {
            arrayList.add(new com.applovin.impl.sdk.a.d(nVar, FriendlyObstructionPurpose.CLOSE_AD, "close button"));
        }
        v vVar = this.g;
        if (vVar != null && vVar.b()) {
            v vVar2 = this.g;
            arrayList.add(new com.applovin.impl.sdk.a.d(vVar2, FriendlyObstructionPurpose.NOT_VISIBLE, vVar2.getIdentifier()));
        }
        ProgressBar progressBar2 = this.G;
        if (progressBar2 != null) {
            arrayList.add(new com.applovin.impl.sdk.a.d(progressBar2, FriendlyObstructionPurpose.OTHER, "postitial progress bar"));
        }
        this.a.o().a(this.f, arrayList);
        w();
        this.M = true;
    }

    protected void C() {
        a(!this.S);
        Activity activity = this.e;
        com.applovin.exoplayer2.h.u a2 = new u.a(new p(activity, ai.a((Context) activity, "com.applovin.sdk"))).a(ab.a(this.a.h()));
        this.z.a(!this.f911J ? 1 : 0);
        this.z.a((com.applovin.exoplayer2.h.p) a2);
        this.z.w();
        this.z.a(false);
    }

    protected void D() {
        if (this.V.compareAndSet(false, true)) {
            a(this.B, this.a.r(), new Runnable() {
                @Override
                public void run() {
                    e.this.W = -1L;
                    e.this.X = SystemClock.elapsedRealtime();
                }
            });
        }
    }

    protected boolean E() {
        return (this.o || this.M || !this.y.getPlayer().a()) ? false : true;
    }

    protected void F() {
        this.L = H();
        this.z.a(false);
    }

    protected void G() {
        if (this.M) {
            if (y.a()) {
                this.c.d("AppLovinFullscreenActivity", "Skip video resume - postitial shown");
            }
        } else if (this.f907b.U().isApplicationPaused()) {
            if (y.a()) {
                this.c.d("AppLovinFullscreenActivity", "Skip video resume - app paused");
            }
        } else {
            long j = this.T;
            if (j >= 0) {
                if (y.a()) {
                    y yVar = this.c;
                    yVar.b("AppLovinFullscreenActivity", "Resuming video at position " + j + "ms for MediaPlayer: " + this.z);
                }
                this.z.a(true);
                this.H.a();
                this.T = -1L;
                if (this.z.a()) {
                    return;
                }
                y();
            } else if (y.a()) {
                y yVar2 = this.c;
                yVar2.b("AppLovinFullscreenActivity", "Invalid last video position, isVideoPlaying=" + this.z.a());
            }
        }
    }

    public int H() {
        aw awVar = this.z;
        if (awVar == null) {
            return 0;
        }
        long I = awVar.I();
        if (this.N) {
            return 100;
        }
        if (I > 0) {
            return (int) ((((float) I) / ((float) this.K)) * 100.0f);
        }
        return this.L;
    }

    public void c(long j) {
        this.K = j;
    }

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

    @Override
    public void e() {
        if (y.a()) {
            this.c.b("AppLovinFullscreenActivity", "Pausing video");
        }
        if (this.z.a()) {
            this.T = this.z.I();
            this.z.a(false);
            this.H.c();
            if (y.a()) {
                y yVar = this.c;
                yVar.b("AppLovinFullscreenActivity", "Paused video at position " + this.T + "ms");
            }
        } else if (y.a()) {
            this.c.b("AppLovinFullscreenActivity", "Nothing to pause");
        }
    }

    @Override
    public String getCommunicatorId() {
        return "FullscreenVideoAdExoPlayerPresenter";
    }

    @Override
    public void h() {
        this.H.b();
        this.I.b();
        this.Q.removeCallbacksAndMessages(null);
        this.R.removeCallbacksAndMessages(null);
        n();
        super.h();
    }

    @Override
    public void k() {
        if (((Boolean) this.f907b.a(com.applovin.impl.sdk.c.b.gH)).booleanValue()) {
            z.a(this.E);
            this.E = null;
        }
        this.z.E();
        if (this.S) {
            AppLovinCommunicator.getInstance(this.e).unsubscribe(this, "video_caching_failed");
        }
        super.k();
    }

    @Override
    protected void n() {
        super.a(H(), this.S, s(), this.W);
    }

    @Override
    public void onMessageReceived(AppLovinCommunicatorMessage appLovinCommunicatorMessage) {
        if ("video_caching_failed".equals(appLovinCommunicatorMessage.getTopic())) {
            Bundle messageData = appLovinCommunicatorMessage.getMessageData();
            long j = messageData.getLong("ad_id");
            if (((Boolean) this.f907b.a(com.applovin.impl.sdk.c.b.go)).booleanValue() && j == this.a.getAdIdNumber() && this.S) {
                int i = messageData.getInt("load_response_code");
                String string = messageData.getString("load_exception_message");
                if ((string == null && i >= 200 && i < 300) || this.N || this.z.a()) {
                    return;
                }
                c("Video cache error during stream. ResponseCode=" + i + ", exception=" + string);
            }
        }
    }

    @Override
    public boolean s() {
        return this.a != null && H() >= this.a.T();
    }

    @Override
    protected boolean t() {
        return u() && !s();
    }

    @Override
    protected void v() {
        long aj;
        long millis;
        if (this.a.ai() >= 0 || this.a.aj() >= 0) {
            if (this.a.ai() >= 0) {
                aj = this.a.ai();
            } else {
                com.applovin.impl.sdk.ad.a aVar = (com.applovin.impl.sdk.ad.a) this.a;
                long j = this.K;
                long j2 = j > 0 ? 0 + j : 0L;
                if (aVar.ak()) {
                    int l = (int) ((com.applovin.impl.sdk.ad.a) this.a).l();
                    if (l > 0) {
                        millis = TimeUnit.SECONDS.toMillis(l);
                    } else {
                        int t = (int) aVar.t();
                        if (t > 0) {
                            millis = TimeUnit.SECONDS.toMillis(t);
                        }
                    }
                    j2 += millis;
                }
                aj = (long) (j2 * (this.a.aj() / 100.0d));
            }
            b(aj);
        }
    }

    @Override
    public void x() {
        super.x();
        this.O.a(this.E);
        this.O.a((View) this.B);
        if (!u() || this.M) {
            J();
        }
    }

    public void y() {
        AppLovinSdkUtils.runOnUiThread(new Runnable() {
            @Override
            public void run() {
                com.applovin.impl.adview.a aVar = e.this.A;
                if (aVar != null) {
                    aVar.a();
                }
            }
        });
    }

    public void z() {
        AppLovinSdkUtils.runOnUiThread(new Runnable() {
            @Override
            public void run() {
                com.applovin.impl.adview.a aVar = e.this.A;
                if (aVar != null) {
                    aVar.b();
                }
            }
        });
    }

    private class a implements x.a {
        private a() {
        }

        @Override
        public void a(w wVar) {
            y yVar = e.this.c;
            if (y.a()) {
                e.this.c.b("AppLovinFullscreenActivity", "Clicking through from video button...");
            }
            e.this.a(wVar.getAndClearLastClickLocation(), false);
        }

        @Override
        public void b(w wVar) {
            y yVar = e.this.c;
            if (y.a()) {
                e.this.c.b("AppLovinFullscreenActivity", "Closing ad from video button...");
            }
            e.this.h();
        }

        @Override
        public void c(w wVar) {
            y yVar = e.this.c;
            if (y.a()) {
                e.this.c.b("AppLovinFullscreenActivity", "Skipping video from video button...");
            }
            e.this.c();
        }

        @Override
        public void d(w wVar) {
            y yVar = e.this.c;
            if (y.a()) {
                e.this.c.b("AppLovinFullscreenActivity", "Attempting to install app from video button...");
            }
            e.this.a(wVar.getAndClearLastClickLocation(), true);
        }

        @Override
        public void a(Uri uri, w wVar) {
            y yVar = e.this.c;
            if (y.a()) {
                e.this.c.b("AppLovinFullscreenActivity", "Attempting to load a url from video button...");
            }
            com.applovin.impl.sdk.utils.u.a(uri, e.this.f.getController(), e.this.f907b);
        }
    }

    private class b implements an.b, f.d, AppLovinTouchToClickListener.OnClickListener {
        private b() {
        }

        @Override
        public void a(ak akVar) {
            e eVar = e.this;
            eVar.c("Video view error (" + akVar + ")");
            e.this.h();
        }

        @Override
        public void b(int i) {
            y yVar = e.this.c;
            if (y.a()) {
                y yVar2 = e.this.c;
                yVar2.b("AppLovinFullscreenActivity", "Player state changed to state " + i + " and will play when ready: " + e.this.z.x());
            }
            if (i == 2) {
                e.this.y();
                e.this.d.g();
            } else if (i != 3) {
                if (i == 4) {
                    y yVar3 = e.this.c;
                    if (y.a()) {
                        e.this.c.b("AppLovinFullscreenActivity", "Video completed");
                    }
                    e eVar = e.this;
                    eVar.N = true;
                    if (!eVar.m) {
                        eVar.B();
                    } else if (eVar.u()) {
                        e.this.J();
                    }
                }
            } else {
                e eVar2 = e.this;
                eVar2.z.a(!eVar2.f911J ? 1 : 0);
                e eVar3 = e.this;
                eVar3.n = (int) TimeUnit.MILLISECONDS.toSeconds(eVar3.z.H());
                e eVar4 = e.this;
                eVar4.c(eVar4.z.H());
                e.this.v();
                y yVar4 = e.this.c;
                if (y.a()) {
                    y yVar5 = e.this.c;
                    yVar5.b("AppLovinFullscreenActivity", "MediaPlayer prepared: " + e.this.z);
                }
                e.this.H.a();
                e eVar5 = e.this;
                if (eVar5.B != null) {
                    eVar5.D();
                }
                e.this.z();
                if (e.this.w.c()) {
                    e.this.e();
                }
            }
        }

        @Override
        public void onClick(View view, PointF pointF) {
            e.this.a(pointF, false);
        }

        @Override
        public void a(int i) {
            if (i == 0) {
                e.this.y.b();
            }
        }
    }

    @Override
    public void b() {
        if (y.a()) {
            this.c.b("AppLovinFullscreenActivity", "Skipping video from prompt");
        }
        c();
    }

    @Override
    public void c(boolean z) {
        super.c(z);
        if (z) {
            a(0L);
            if (this.M) {
                this.I.a();
            }
        } else if (this.M) {
            this.I.c();
        } else {
            e();
        }
    }

    protected void d(boolean z) {
        if (com.applovin.impl.sdk.utils.h.d()) {
            AnimatedVectorDrawable animatedVectorDrawable = (AnimatedVectorDrawable) this.e.getDrawable(z ? R.drawable.applovin_ic_unmute_to_mute : R.drawable.applovin_ic_mute_to_unmute);
            if (animatedVectorDrawable != null) {
                this.D.setScaleType(ImageView.ScaleType.FIT_XY);
                this.D.setImageDrawable(animatedVectorDrawable);
                animatedVectorDrawable.start();
                return;
            }
        }
        Uri aJ = z ? this.a.aJ() : this.a.aK();
        StrictMode.ThreadPolicy allowThreadDiskReads = StrictMode.allowThreadDiskReads();
        this.D.setImageURI(aJ);
        StrictMode.setThreadPolicy(allowThreadDiskReads);
    }

    @Override
    public void a(@Nullable ViewGroup viewGroup) {
        this.O.a(this.D, this.B, this.E, this.A, this.F, this.C, this.y, this.f, this.g, null, viewGroup);
        v vVar = this.g;
        if (vVar != null) {
            vVar.a();
        }
        this.z.a(true);
        if (this.a.ar()) {
            this.w.a(this.a, new Runnable() {
                @Override
                public void run() {
                    e.this.a(250L);
                }
            });
        }
        if (this.S) {
            y();
        }
        this.f.renderAd(this.a);
        this.d.b(this.S ? 1L : 0L);
        if (this.B != null) {
            this.f907b.G().a(new ac(this.f907b, "scheduleSkipButton", new Runnable() {
                @Override
                public void run() {
                    e.this.D();
                }
            }), r.b.MAIN, this.a.s(), true);
        }
        super.b(this.f911J);
    }

    public void c() {
        this.W = SystemClock.elapsedRealtime() - this.X;
        if (y.a()) {
            this.c.b("AppLovinFullscreenActivity", "Skipping video with skip time: " + this.W + "ms");
        }
        this.d.f();
        this.p++;
        if (this.a.y()) {
            h();
        } else {
            B();
        }
    }

    public void c(String str) {
        if (y.a()) {
            y yVar = this.c;
            yVar.e("AppLovinFullscreenActivity", "Encountered media error: " + str + " for ad: " + this.a);
        }
        if (this.U.compareAndSet(false, true)) {
            AppLovinAdDisplayListener appLovinAdDisplayListener = this.u;
            if (appLovinAdDisplayListener instanceof com.applovin.impl.sdk.ad.h) {
                ((com.applovin.impl.sdk.ad.h) appLovinAdDisplayListener).onAdDisplayFailed(str);
            }
            h();
        }
    }

    private void a(ProgressBar progressBar, int i, int i2) {
        progressBar.setMax(i2);
        progressBar.setPadding(0, 0, 0, 0);
        if (com.applovin.impl.sdk.utils.h.d()) {
            progressBar.setProgressTintList(ColorStateList.valueOf(i));
        }
    }

    public void a(PointF pointF, boolean z) {
        if (this.a.E()) {
            if (y.a()) {
                this.c.b("AppLovinFullscreenActivity", "Clicking through video");
            }
            Uri k = this.a.k();
            if (k != null) {
                AppLovinAdView appLovinAdView = this.f;
                this.f907b.v().trackAndLaunchVideoClick(this.a, k, pointF, z, this, appLovinAdView != null ? appLovinAdView.getContext() : o.au());
                com.applovin.impl.sdk.utils.o.a(this.t, this.a);
                this.d.b();
                this.q++;
                return;
            }
            return;
        }
        I();
    }

    @Override
    public void a(long j) {
        a(new Runnable() {
            @Override
            public void run() {
                e.this.G();
            }
        }, j);
    }

    private static boolean a(boolean z, o oVar) {
        if (((Boolean) oVar.a(com.applovin.impl.sdk.c.b.cN)).booleanValue()) {
            if (!((Boolean) oVar.a(com.applovin.impl.sdk.c.b.cO)).booleanValue() || z) {
                return true;
            }
            return ((Boolean) oVar.a(com.applovin.impl.sdk.c.b.cQ)).booleanValue();
        }
        return false;
    }

    @Override
    public void a() {
        if (y.a()) {
            this.c.b("AppLovinFullscreenActivity", "Continue video from prompt - will resume in onWindowFocusChanged(true) when alert dismisses");
        }
    }
}