APKPure v3.19.91版本的 MD5 值为:f9be25764b720fb55728dbddf2153619

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


package e6;

import aj.qdbg;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;
import com.apkpure.aegon.R;
import com.apkpure.aegon.application.AegonApplication;
import com.apkpure.aegon.application.RealApplicationLike;
import com.apkpure.aegon.bean.PictureBean;
import com.apkpure.aegon.cms.activity.PictureBrowseActivity;
import com.apkpure.aegon.cms.adapter.qdfd;
import com.apkpure.aegon.statistics.datong.DTReportUtils;
import com.apkpure.aegon.utils.qdch;
import com.apkpure.aegon.widgets.layout.FingerFrameLayout;
import com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.YouTubePlayerView;
import e7.qdbe;
import j7.qdbb;

public class qdag extends qdbb {

    public static final int f19801u = 0;

    public YouTubePlayerView f19802g;

    public ImageView f19803h;

    public TextView f19804i;

    public ImageView f19805j;

    public PictureBean f19806k;

    public q8.qdag f19807l;

    public FrameLayout f19808m;

    public FingerFrameLayout f19809n;

    public PictureBrowseActivity.qdad f19810o;

    public FingerFrameLayout.qdaa f19811p;

    public boolean f19812q;

    public boolean f19813r;

    public ci.qdaf f19814s;

    public boolean f19815t;

    @Override
    public final long H1() {
        return 2151L;
    }

    @Override
    public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        View inflate = layoutInflater.inflate(R.layout.arg_res_0x7f0c0186, viewGroup, false);
        if (getArguments() != null) {
            this.f19806k = (PictureBean) getArguments().getParcelable("bundle_video_data");
        }
        PictureBean pictureBean = this.f19806k;
        if (pictureBean != null) {
            this.f19812q = pictureBean.isAutoPlayVideo;
            this.f19813r = pictureBean.isFullScreen;
        }
        this.f19809n = (FingerFrameLayout) inflate.findViewById(R.id.arg_res_0x7f090964);
        this.f19808m = (FrameLayout) inflate.findViewById(R.id.arg_res_0x7f0901e0);
        this.f19805j = (ImageView) inflate.findViewById(R.id.arg_res_0x7f0901e1);
        this.f19803h = (ImageView) inflate.findViewById(R.id.arg_res_0x7f090c14);
        this.f19804i = (TextView) inflate.findViewById(R.id.arg_res_0x7f090c12);
        if (this.f19802g == null) {
            this.f19802g = new YouTubePlayerView(this.f22981c);
            FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(-1, -2);
            layoutParams.gravity = 17;
            this.f19802g.setLayoutParams(layoutParams);
            this.f19802g.setBackgroundResource(R.color.arg_res_0x7f0600b9);
            this.f19802g.setVisibility(4);
            this.f19809n.addView(this.f19802g);
        }
        this.f19805j.getLayoutParams().height = n6.qdag.g(this.f22981c);
        this.f19802g.getLayoutParams().height = n6.qdag.g(this.f22981c);
        this.f19802g.setVisibility(8);
        int i4 = AegonApplication.f7193e;
        qdbe.j(RealApplicationLike.getContext(), "https://static-sg.winudf.com/wupload/xy/aprojectadmin/r4qBCniy.webp", this.f19803h, new nc.qdaf());
        DTReportUtils.s(this.f19809n, 2151L);
        int i5 = 22;
        if (this.f19810o != null) {
            this.f19809n.setOnClickListener(new b5.qdaa(this, i5));
        }
        this.f19809n.setUpdateAlpha(false);
        FingerFrameLayout.qdaa qdaaVar = this.f19811p;
        if (qdaaVar != null) {
            this.f19809n.setOnAlphaChangeListener(qdaaVar);
        }
        if (!TextUtils.isEmpty(this.f19806k.lengthSeconds)) {
            this.f19804i.setText(qdch.f(Integer.parseInt(this.f19806k.lengthSeconds)));
            this.f19804i.setVisibility(0);
        } else {
            this.f19804i.setVisibility(8);
        }
        int i10 = 2;
        if (!TextUtils.isEmpty(this.f19806k.thumbnailUrl)) {
            Context context = this.f22981c;
            qdbg.o(2, context, context, this.f19806k.thumbnailUrl, this.f19805j);
        }
        this.f19807l = new q8.qdag(this.f22982d, new View[]{this.f19808m});
        this.f19805j.setOnClickListener(new qdfd(this, i10));
        this.f19805j.performClick();
        if (this.f19813r) {
            new Handler(Looper.getMainLooper()).post(new androidx.activity.qdad(this, i5));
        }
        gi.qdae playerUiController = this.f19802g.getPlayerUiController();
        if (playerUiController != null) {
            View b9 = playerUiController.b();
            this.f19802g.setDtListener(new qdaf(this));
            PictureBean pictureBean2 = this.f19806k;
            kotlin.jvm.internal.qdbb.f(pictureBean2, "pictureBean");
            new Handler(Looper.getMainLooper()).post(new v0.qdag(b9, pictureBean2, 21));
        }
        tp.qdaa.b(this, inflate);
        return inflate;
    }

    @Override
    public final void onDestroyView() {
        YouTubePlayerView youTubePlayerView = this.f19802g;
        if (youTubePlayerView != null) {
            if (this.f19815t) {
                PictureBean pictureBean = this.f19806k;
                com.vungle.warren.utility.qdad.f0(youTubePlayerView, "auto_pause", pictureBean.videoId, pictureBean.videoLength, Boolean.valueOf(pictureBean.isInterveneConfig));
            }
            this.f19802g.release();
        }
        super.onDestroyView();
    }

    @Override
    public final void setUserVisibleHint(boolean z10) {
        super.setUserVisibleHint(z10);
        if (z10 || this.f19814s == null) {
            return;
        }
        if (this.f19815t) {
            YouTubePlayerView youTubePlayerView = this.f19802g;
            PictureBean pictureBean = this.f19806k;
            com.vungle.warren.utility.qdad.f0(youTubePlayerView, "auto_pause", pictureBean.videoId, pictureBean.videoLength, Boolean.valueOf(pictureBean.isInterveneConfig));
        }
        this.f19814s.pause();
    }
}