导航菜单

页面标题

页面副标题

MX Player v1.97.8 - TVShowDetailsActivity.java 源代码

正在查看: MX Player v1.97.8 应用的 TVShowDetailsActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.mxtech.videoplayer.ad.online.features.tvshow;

import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.widget.Toolbar;
import androidx.fragment.app.FragmentManager;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.google.android.material.appbar.AppBarLayout;
import com.google.android.material.appbar.CollapsingToolbarLayout;
import com.m.x.player.pandora.common.fromstack.From;
import com.m.x.player.pandora.common.fromstack.FromStack;
import com.m.x.player.pandora.common.fromstack.FromStackProvider;
import com.mxtech.videoplayer.ad.online.model.bean.EmptyOrNetErrorInfo;
import com.mxtech.videoplayer.ad.online.model.bean.next.OnlineResource;
import com.mxtech.videoplayer.ad.online.model.bean.next.ResourceFlow;
import com.mxtech.videoplayer.ad.online.model.bean.next.SeasonResourceFlow;
import com.mxtech.videoplayer.ad.online.model.bean.next.publisher.ResourcePublisher;
import com.mxtech.videoplayer.ad.online.model.bean.next.tvshow.TvShow;
import com.mxtech.videoplayer.ad.view.list.MXRecyclerView;
import defpackage.aug;
import defpackage.bug;
import defpackage.i61;
import defpackage.ofh;
import defpackage.poh;
import defpackage.qbg;
import defpackage.qoh;
import defpackage.rj4;
import defpackage.t7e;
import defpackage.tj5;
import defpackage.wqe;
import defpackage.xe0;
import defpackage.xxc;
import defpackage.ytg;
import defpackage.z4i;
import defpackage.ztg;
import java.util.ArrayList;
import org.greenrobot.eventbus.ThreadMode;

public class TVShowDetailsActivity extends xxc implements FromStackProvider, View.OnClickListener {
    public static final int I = 0;
    public ImageView A;
    public TextView B;
    public CollapsingToolbarLayout C;
    public AppBarLayout D;
    public String E;
    public boolean F;
    public ofh G;
    public wqe H;
    public ImageView u;
    public bug v;
    public final ArrayList w = new ArrayList();
    public MXRecyclerView x;
    public mxb y;
    public TvShow z;

    @Override
    public final From d6() {
        TvShow tvShow = this.z;
        return From.create(tvShow.getId(), tvShow.getName(), "tvShowDetail");
    }

    @Override
    public final int j6() {
        return 2131558451;
    }

    public final void onBackPressed() {
        if (s6()) {
            return;
        }
        super/*ub3*/.onBackPressed();
    }

    @Override
    public void onClick(View view) {
        TvShow tvShow;
        FragmentManager supportFragmentManager = getSupportFragmentManager();
        if (supportFragmentManager == null || (tvShow = this.z) == null) {
            return;
        }
        FromStack x = super.getX();
        wqe wqeVar = new wqe();
        Bundle bundle = new Bundle();
        bundle.putSerializable("PARAM_FEED", tvShow);
        bundle.putString("PARAM_FROM", x.toString());
        wqeVar.setArguments(bundle);
        this.H = wqeVar;
        wqeVar.showAllowStateLost(supportFragmentManager, "DownloadDialogF");
    }

    @Override
    public final void onCreate(Bundle bundle) {
        this.z = (TvShow) getIntent().getSerializableExtra("EXTRA_SINGER");
        super.onCreate(bundle);
        TvShow tvShow = this.z;
        bug bugVar = new bug();
        bugVar.c = tvShow;
        if (tvShow == null) {
            throw new IllegalArgumentException("Invalid param");
        }
        bugVar.b = this;
        rj4 a = rj4.a(tvShow);
        bugVar.d = a;
        a.i = bugVar;
        this.v = bugVar;
        if (this.z.getType() == null) {
            finish();
            return;
        }
        Toolbar toolbar = this.q;
        if (toolbar != null) {
            toolbar.setBackgroundResource(2131235979);
            qbg.f(this.q);
        }
        ActionBar actionBar = this.p;
        if (actionBar != null) {
            actionBar.u(2131234209);
        }
        this.C = findViewById(2131362722);
        this.D = findViewById(2131362092);
        this.u = (ImageView) findViewById(2131362887);
        this.A = (ImageView) findViewById(2131363783);
        this.B = (TextView) findViewById(2131363792);
        MXRecyclerView findViewById = findViewById(2131363018);
        this.x = findViewById;
        findViewById.setLayoutManager(new LinearLayoutManager(1));
        this.x.S0();
        this.x.T0();
        this.x.setItemAnimator((RecyclerView.j) null);
        this.x.setOnActionListener((MXRecyclerView.b) null);
        mxb mxbVar = new mxb(this.w);
        this.y = mxbVar;
        mxbVar.g(TvShow.class, new inh(new i61(this)));
        this.y.g(qoh.class, new poh(this, super.getX(), this));
        this.y.g(ResourcePublisher.class, new t7e(this, true, super.getX()));
        this.y.g(EmptyOrNetErrorInfo.class, new uj4(new aug(this)));
        this.y.g(ResourceFlow.class, new imc(this, (OnlineResource) null, super.getX()));
        this.y.g(SeasonResourceFlow.class, new og5(this, super.getX()));
        this.x.setAdapter(this.y);
        TvShow tvShow2 = this.z;
        if (tvShow2 != null) {
            this.E = tvShow2.getName();
            this.F = true;
            sx9.l(this, this.u, this.z.posterList(), 2131167559, 2131167579, kr4.j());
        }
        this.D.addOnOffsetChangedListener(new ztg(this));
        bug bugVar2 = this.v;
        bugVar2.b.getClass();
        bugVar2.d.b();
        if (!tj5.b(this)) {
            tj5.e(this);
        }
        qbg.g(this);
    }

    @Override
    public final void onDestroy() {
        super.onDestroy();
        wqe wqeVar = this.H;
        if (wqeVar != null && wqeVar.isShowing()) {
            this.H.dismissAllowingStateLoss();
        }
        if (this.z.getType() != null) {
            kl3.p(new xe0[]{this.v.d.g});
            tj5.h(this);
        }
    }

    @vgg(threadMode = ThreadMode.MAIN)
    public void onEvent(ytg ytgVar) {
        bug bugVar;
        TvShow tvShow;
        if (tj5.a.contains(this) && (bugVar = this.v) != null && (tvShow = bugVar.c) != null && tvShow.getId() != null) {
            throw null;
        }
    }

    public final void p6() {
        ArrayList arrayList = this.w;
        if (arrayList.size() > 0) {
            for (int size = arrayList.size() - 1; size >= 0; size--) {
                arrayList.remove(size);
                this.y.notifyItemRemoved(size);
            }
        }
    }

    public final boolean s6() {
        if (!z4i.f(this.G)) {
            return false;
        }
        FragmentManager supportFragmentManager = getSupportFragmentManager();
        androidx.fragment.app.a h = km4.h(supportFragmentManager, supportFragmentManager);
        h.h(2130772053, 2130772054, 0, 0);
        h.n(this.G);
        h.j(true);
        ViewGroup.LayoutParams layoutParams = (AppBarLayout.LayoutParams) this.C.getLayoutParams();
        ((AppBarLayout.LayoutParams) layoutParams).a = 13;
        this.C.setLayoutParams(layoutParams);
        return true;
    }

    public final void t6(Object obj) {
        if (obj != null) {
            this.w.add(0, obj);
        }
        this.y.notifyItemRangeInserted(0, 0);
    }
}