导航菜单

页面标题

页面副标题

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

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

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


package com.mxtech.videoplayer.ad.online.mxtube;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.appcompat.widget.AppCompatImageView;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import androidx.core.widget.NestedScrollView;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.a;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.j;
import com.google.android.material.appbar.AppBarLayout;
import com.m.x.player.pandora.common.fromstack.From;
import com.mxtech.videoplayer.ad.online.model.bean.next.PublisherTubeVideo;
import com.mxtech.videoplayer.ad.online.model.bean.next.ResourceFlow;
import com.mxtech.videoplayer.ad.online.model.bean.next.ResourceType;
import com.mxtech.videoplayer.ad.view.imageview.AutoRotateView;
import com.mxtech.videoplayer.ad.view.list.MXRecyclerView;
import defpackage.a34;
import defpackage.a4b;
import defpackage.a7a;
import defpackage.ei0;
import defpackage.en2;
import defpackage.esg;
import defpackage.f3b;
import defpackage.fj6;
import defpackage.g3b;
import defpackage.g6a;
import defpackage.h3b;
import defpackage.h6a;
import defpackage.i0g;
import defpackage.j1b;
import defpackage.l85;
import defpackage.ll;
import defpackage.nf;
import defpackage.oo4;
import defpackage.rmc;
import defpackage.tya;
import defpackage.xxc;
import java.util.List;
import kotlin.Metadata;
import kotlin.coroutines.CoroutineContext;
import kotlin.ranges.d;
import org.jetbrains.annotations.NotNull;

@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\u0018\u00002\u00020\u00012\u00020\u00022\u00020\u00032\u00020\u0004B\u0007¢\u0006\u0004\b\u0005\u0010\u0006J\u0019\u0010\n\u001a\u00020\t2\b\u0010\b\u001a\u0004\u0018\u00010\u0007H\u0016¢\u0006\u0004\b\n\u0010\u000b¨\u0006\f"}, d2 = {"Lcom/mxtech/videoplayer/ad/online/mxtube/MXTubeChannelActivity;", "Lxxc;", "La34$b;", "Lcom/google/android/material/appbar/AppBarLayout$g;", "Landroid/view/View$OnClickListener;", "<init>", "()V", "Landroid/view/View;", "v", "", "onClick", "(Landroid/view/View;)V", "PlayerAd-vc2001002668-vn1.97.8.1.0-0_google_bundleRelease"}, k = 1, mv = {2, 0, 0}, xi = 48)
public final class MXTubeChannelActivity extends xxc implements a34.b, AppBarLayout.g, View.OnClickListener {
    public static final int z = 0;
    public nf v;
    public rmc x;
    public String y;

    @NotNull
    public final asg u = o9a.b(new fj6(1));

    @NotNull
    public final ResourceFlow w = (ResourceFlow) ResourceType.ContainerType.CONTAINER_PUBLISHER_TUBE.createResource();

    public final void B0(AppBarLayout appBarLayout, int i) {
        float abs = Math.abs(i) / appBarLayout.getTotalScrollRange();
        nf nfVar = this.v;
        if (nfVar == null) {
            nfVar = null;
        }
        float f = 1.0f - abs;
        nfVar.g.setAlpha(f);
        nf nfVar2 = this.v;
        if (nfVar2 == null) {
            nfVar2 = null;
        }
        nfVar2.d.setAlpha(abs < 0.5f ? 0.0f : (abs * 2.0f) - 1.0f);
        nf nfVar3 = this.v;
        if (nfVar3 == null) {
            nfVar3 = null;
        }
        nfVar3.l.setAlpha(d.a(0.0f, 1.0f - (2.0f * abs)));
        if (abs > 0.5f) {
            int c = i0g.c(this, 2131100151);
            nf nfVar4 = this.v;
            if (nfVar4 == null) {
                nfVar4 = null;
            }
            nfVar4.f.getDrawable().setTint(c);
            nf nfVar5 = this.v;
            if (nfVar5 == null) {
                nfVar5 = null;
            }
            nfVar5.h.getDrawable().setTint(c);
            nf nfVar6 = this.v;
            (nfVar6 != null ? nfVar6 : null).m.setVisibility(0);
            if (i0g.b().j()) {
                esg.e(getWindow(), true);
            }
        } else {
            nf nfVar7 = this.v;
            if (nfVar7 == null) {
                nfVar7 = null;
            }
            nfVar7.f.getDrawable().setTint(-1);
            nf nfVar8 = this.v;
            if (nfVar8 == null) {
                nfVar8 = null;
            }
            nfVar8.h.getDrawable().setTint(-1);
            nf nfVar9 = this.v;
            (nfVar9 != null ? nfVar9 : null).m.setVisibility(4);
            if (i0g.b().j()) {
                esg.e(getWindow(), false);
            }
        }
        if (f == 1.0f) {
            u6(2131232615);
        }
        if (f == 0.0f) {
            u6(2131232617);
        }
    }

    @Override
    @SuppressLint({"NotifyDataSetChanged"})
    public final void P3(@NotNull a34<?> a34Var, boolean z2) {
        if (z2) {
            p6().i = a34Var.cloneData();
            p6().notifyDataSetChanged();
            rmc rmcVar = this.x;
            if (rmcVar == null) {
                rmcVar = null;
            }
            if (rmcVar.hasMoreData()) {
                nf nfVar = this.v;
                if (nfVar == null) {
                    nfVar = null;
                }
                nfVar.j.U0();
            }
        } else {
            List list = p6().i;
            p6().i = a34Var.cloneData();
            j.a(new oo4(list, p6().i), false).b(p6());
        }
        nf nfVar2 = this.v;
        if (nfVar2 == null) {
            nfVar2 = null;
        }
        nfVar2.j.W0();
        nf nfVar3 = this.v;
        if (nfVar3 == null) {
            nfVar3 = null;
        }
        nfVar3.j.X0();
        rmc rmcVar2 = this.x;
        if (rmcVar2 == null) {
            rmcVar2 = null;
        }
        if (!rmcVar2.hasMoreData()) {
            nf nfVar4 = this.v;
            if (nfVar4 == null) {
                nfVar4 = null;
            }
            nfVar4.j.S0();
        }
        List list2 = p6().i;
        if (list2 == null || !list2.isEmpty()) {
            return;
        }
        nf nfVar5 = this.v;
        if (nfVar5 == null) {
            nfVar5 = null;
        }
        nfVar5.j.setVisibility(8);
        nf nfVar6 = this.v;
        (nfVar6 != null ? nfVar6 : null).e.a.setVisibility(0);
    }

    @Override
    public final void V0(@NotNull a34<?> a34Var, @NotNull Throwable th) {
        nf nfVar = this.v;
        if (nfVar == null) {
            nfVar = null;
        }
        nfVar.j.W0();
        nf nfVar2 = this.v;
        if (nfVar2 == null) {
            nfVar2 = null;
        }
        nfVar2.j.X0();
        if (p6().i == null || p6().i.isEmpty()) {
            nf nfVar3 = this.v;
            if (nfVar3 == null) {
                nfVar3 = null;
            }
            nfVar3.i.a.setVisibility(0);
            nf nfVar4 = this.v;
            (nfVar4 != null ? nfVar4 : null).i.b.setOnClickListener(this);
        }
    }

    @Override
    @NotNull
    public final View b6() {
        ConstraintLayout inflate = getLayoutInflater().inflate(2131558509, (ViewGroup) null, false);
        int i = 2131362103;
        AppBarLayout o = a7.o(2131362103, inflate);
        if (o != null) {
            i = 2131362721;
            if (a7.o(2131362721, inflate) != null) {
                i = 2131362855;
                CoordinatorLayout o2 = a7.o(2131362855, inflate);
                if (o2 != null) {
                    i = 2131363081;
                    View o3 = a7.o(2131363081, inflate);
                    if (o3 != null) {
                        i = 2131363246;
                        NestedScrollView o4 = a7.o(2131363246, inflate);
                        if (o4 != null) {
                            int i2 = 2131364250;
                            if (a7.o(2131364250, o4) != null) {
                                i2 = 2131367003;
                                if (a7.o(2131367003, o4) != null) {
                                    g6a g6aVar = new g6a(o4);
                                    i = 2131364192;
                                    AppCompatImageView o5 = a7.o(2131364192, inflate);
                                    if (o5 != null) {
                                        i = 2131364207;
                                        AppCompatImageView o6 = a7.o(2131364207, inflate);
                                        if (o6 != null) {
                                            i = 2131364248;
                                            AppCompatImageView o7 = a7.o(2131364248, inflate);
                                            if (o7 != null) {
                                                i = 2131364596;
                                                View o8 = a7.o(2131364596, inflate);
                                                if (o8 != null) {
                                                    h6a a = h6a.a(o8);
                                                    i = 2131365601;
                                                    MXRecyclerView o9 = a7.o(2131365601, inflate);
                                                    if (o9 != null) {
                                                        i = 2131365670;
                                                        View o10 = a7.o(2131365670, inflate);
                                                        if (o10 != null) {
                                                            int i3 = 2131365515;
                                                            AutoRotateView o11 = a7.o(2131365515, o10);
                                                            if (o11 != null) {
                                                                i3 = 2131365665;
                                                                TextView textView = (TextView) a7.o(2131365665, o10);
                                                                if (textView != null) {
                                                                    FrameLayout frameLayout = (FrameLayout) o10;
                                                                    i3 = 2131365672;
                                                                    LinearLayout linearLayout = (LinearLayout) a7.o(2131365672, o10);
                                                                    if (linearLayout != null) {
                                                                        i3 = 2131365681;
                                                                        if (a7.o(2131365681, o10) != null) {
                                                                            i3 = 2131365682;
                                                                            if (((TextView) a7.o(2131365682, o10)) != null) {
                                                                                a7a a7aVar = new a7a(frameLayout, o11, textView, frameLayout, linearLayout);
                                                                                int i4 = 2131366596;
                                                                                if (a7.o(2131366596, inflate) != null) {
                                                                                    i4 = 2131366917;
                                                                                    AppCompatTextView o12 = a7.o(2131366917, inflate);
                                                                                    if (o12 != null) {
                                                                                        i4 = 2131366918;
                                                                                        AppCompatTextView o13 = a7.o(2131366918, inflate);
                                                                                        if (o13 != null) {
                                                                                            ConstraintLayout constraintLayout = inflate;
                                                                                            this.v = new nf(constraintLayout, o, o2, o3, g6aVar, o5, o6, o7, a, o9, a7aVar, o12, o13);
                                                                                            return constraintLayout;
                                                                                        }
                                                                                    }
                                                                                }
                                                                                i = i4;
                                                                                throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                            throw new NullPointerException("Missing required view with ID: ".concat(o10.getResources().getResourceName(i3)));
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                            throw new NullPointerException("Missing required view with ID: ".concat(o4.getResources().getResourceName(i2)));
                        }
                    }
                }
            }
        }
        throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
    }

    @Override
    public final From d6() {
        return From.create("mxtubeChannel", "mxtubeChannel", "mxtubeChannel");
    }

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

    @Override
    public void onClick(View v) {
        if (v == null || en2.a(400L)) {
            return;
        }
        nf nfVar = this.v;
        if (nfVar == null) {
            nfVar = null;
        }
        if (v.equals(nfVar.f)) {
            onBackPressed();
            return;
        }
        nf nfVar2 = this.v;
        if (nfVar2 == null) {
            nfVar2 = null;
        }
        if (v.equals(nfVar2.h)) {
            FragmentManager supportFragmentManager = getSupportFragmentManager();
            String str = this.y;
            ll llVar = new ll(this);
            l85 l85Var = new l85();
            Bundle bundle = new Bundle();
            bundle.putString("original_text", str);
            l85Var.setArguments(bundle);
            l85Var.b = llVar;
            a h = km4.h(supportFragmentManager, supportFragmentManager);
            h.f(0, l85Var, "EditChannelNameDialog", 1);
            h.j(true);
            return;
        }
        nf nfVar3 = this.v;
        if (nfVar3 == null) {
            nfVar3 = null;
        }
        if (v.equals(nfVar3.k.c)) {
            s6();
            return;
        }
        nf nfVar4 = this.v;
        if (v.equals((nfVar4 != null ? nfVar4 : null).i.b)) {
            if (vk4.h(tya.m)) {
                t6();
            } else {
                ei0.o(201, tya.m);
            }
        }
    }

    @Override
    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        nf nfVar = this.v;
        if (nfVar == null) {
            nfVar = null;
        }
        nfVar.h.setOnClickListener(this);
        nf nfVar2 = this.v;
        if (nfVar2 == null) {
            nfVar2 = null;
        }
        nfVar2.f.setOnClickListener(this);
        p6().g(PublisherTubeVideo.class, new a4b(new f3b(this)));
        nf nfVar3 = this.v;
        if (nfVar3 == null) {
            nfVar3 = null;
        }
        MXRecyclerView mXRecyclerView = nfVar3.j;
        int dimensionPixelSize = getResources().getDimensionPixelSize(2131165670);
        mXRecyclerView.j(new ixf(0, 0, 0, 0, 0, dimensionPixelSize, 0, dimensionPixelSize), -1);
        mXRecyclerView.setLayoutManager(new LinearLayoutManager(1));
        mXRecyclerView.U0();
        mXRecyclerView.V0();
        mXRecyclerView.L0 = true;
        mXRecyclerView.setOnActionListener(new g3b(this));
        nf nfVar4 = this.v;
        (nfVar4 != null ? nfVar4 : null).j.setAdapter(p6());
        ResourceFlow resourceFlow = this.w;
        resourceFlow.setRefreshUrl("https://androidapi.mxplay.com/v1/mxtube/uploaded");
        rmc rmcVar = new rmc(resourceFlow);
        this.x = rmcVar;
        rmcVar.registerSourceListener(this);
        s6();
        u6(2131232615);
    }

    @Override
    public final void onDestroy() {
        rmc rmcVar = this.x;
        if (rmcVar == null) {
            rmcVar = null;
        }
        rmcVar.release();
        super.onDestroy();
    }

    @Override
    @SuppressLint({"NotifyDataSetChanged"})
    public final void p(@NotNull a34<?> a34Var) {
        p6().i = a34Var.cloneData();
        p6().notifyDataSetChanged();
    }

    public final mxb p6() {
        return (mxb) this.u.getValue();
    }

    public final void s6() {
        String str = this.y;
        if (str == null || str.length() == 0) {
            xfg.C(qba.a(getLifecycle()), (CoroutineContext) null, (fs3) null, new h3b(this, null), 3);
        } else {
            t6();
        }
    }

    public final void t6() {
        nf nfVar = this.v;
        if (nfVar == null) {
            nfVar = null;
        }
        nfVar.i.a.setVisibility(8);
        nf nfVar2 = this.v;
        if (nfVar2 == null) {
            nfVar2 = null;
        }
        nfVar2.j.Z0();
        rmc rmcVar = this.x;
        (rmcVar != null ? rmcVar : null).reload();
    }

    public final void u6(int i) {
        Window window = getWindow();
        if (window != null) {
            window.setBackgroundDrawable(i0g.e(window.getContext(), i));
            window.setStatusBarColor(((j1b) getResources()).a.getColor(2131103922));
        }
    }

    @Override
    public final void initToolBar() {
    }

    @Override
    public final void E(@NotNull a34<?> a34Var) {
    }
}