导航菜单

页面标题

页面副标题

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

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

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


package com.mxtech.mediamanager;

import android.R;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import androidx.appcompat.widget.AppCompatImageView;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.appcompat.widget.Toolbar;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.constraintlayout.widget.Group;
import androidx.core.widget.NestedScrollView;
import androidx.fragment.app.m;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.m.x.player.pandora.common.fromstack.From;
import com.m.x.player.pandora.common.fromstack.FromStack;
import com.mxtech.io.Files;
import com.mxtech.media.directory.MediaFile;
import com.mxtech.mediamanager.view.MediaManagerCleanUpLayout;
import com.mxtech.videoplayer.L;
import com.mxtech.videoplayer.e;
import com.mxtech.videoplayer.fastscroll.FastScroller;
import defpackage.a3;
import defpackage.a7h;
import defpackage.beb;
import defpackage.bf0;
import defpackage.bfb;
import defpackage.bg;
import defpackage.ceb;
import defpackage.cfb;
import defpackage.d2;
import defpackage.deb;
import defpackage.dfb;
import defpackage.efb;
import defpackage.esg;
import defpackage.ffb;
import defpackage.gfh;
import defpackage.gn;
import defpackage.h7f;
import defpackage.hn;
import defpackage.ho4;
import defpackage.hr0;
import defpackage.i0g;
import defpackage.il6;
import defpackage.j1b;
import defpackage.kia;
import defpackage.kwd;
import defpackage.leb;
import defpackage.mdg;
import defpackage.ocb;
import defpackage.oeb;
import defpackage.peb;
import defpackage.qbg;
import defpackage.t1e;
import defpackage.tj5;
import defpackage.tya;
import defpackage.u1c;
import defpackage.uab;
import defpackage.v2;
import defpackage.web;
import defpackage.weh;
import defpackage.yeb;
import defpackage.z4i;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import kotlin.Function;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.functions.Function1;
import okhttp3.p;
import org.greenrobot.eventbus.ThreadMode;
import org.jetbrains.annotations.NotNull;

@Metadata(d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\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\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\u0018\u00002\u00020\u00012\u00020\u00022\u00020\u00032\u00020\u00042\u00020\u00052\u00020\u0006:\u0001\u0012B\u0007¢\u0006\u0004\b\u0007\u0010\bJ\u0017\u0010\f\u001a\u00020\u000b2\u0006\u0010\n\u001a\u00020\tH\u0007¢\u0006\u0004\b\f\u0010\rJ\u0017\u0010\u0010\u001a\u00020\u000b2\u0006\u0010\u000f\u001a\u00020\u000eH\u0016¢\u0006\u0004\b\u0010\u0010\u0011¨\u0006\u0013"}, d2 = {"Lcom/mxtech/mediamanager/MediaManagerActivity;", "Lcom/mxtech/videoplayer/e;", "Landroid/view/View$OnClickListener;", "Lweb$b;", "Lyeb$a;", "Luab$d;", "Lil6;", "<init>", "()V", "Lleb;", "event", "", "onEvent", "(Lleb;)V", "Landroid/view/View;", "v", "onClick", "(Landroid/view/View;)V", "a", "Player_release"}, k = 1, mv = {2, 0, 0}, xi = 48)
public final class MediaManagerActivity extends e implements View.OnClickListener, web.b, yeb.a, uab.d, il6 {
    public static final int V = 0;
    public ef O;
    public mxb P;
    public wu5 Q;
    public ui1 R;
    public FromStack S;

    @NotNull
    public final asg T = o9a.b(new ocb(0));

    @NotNull
    public final asg U = o9a.b(new v2(this, 1));

    public static final class a {
        public static void a(@NotNull Context context, FromStack fromStack, @NotNull String str) {
            Intent intent = new Intent(context, (Class<?>) MediaManagerActivity.class);
            intent.putExtra(FromStack.FROM_LIST, fromStack);
            intent.putExtra("from", str);
            context.startActivity(intent);
        }
    }

    public static final class c implements hrc, aq6 {
        public final Function1 b;

        public c(Function1 function1) {
            this.b = function1;
        }

        public final void a(Object obj) {
            this.b.invoke(obj);
        }

        @NotNull
        public final Function<?> c() {
            return this.b;
        }

        public final boolean equals(Object obj) {
            if ((obj instanceof hrc) && (obj instanceof aq6)) {
                return this.b.equals(((aq6) obj).c());
            }
            return false;
        }

        public final int hashCode() {
            return this.b.hashCode();
        }
    }

    public static void G6(String str) {
        mdg mdgVar = new mdg("mmShortcutClicked", weh.c);
        do2.n("type", str, mdgVar.b);
        gfh.d(mdgVar);
    }

    @Override
    public final void A3() {
        ffb C6 = C6();
        xfg.C(C6.r(), (CoroutineContext) null, (fs3) null, new dfb(C6, null), 3);
        ffb C62 = C6();
        xfg.C(C62.r(), (CoroutineContext) null, (fs3) null, new cfb(C62, null), 3);
        ffb C63 = C6();
        xfg.C(C63.r(), (CoroutineContext) null, (fs3) null, new bfb(C63, null), 3);
        F6();
    }

    public final ffb C6() {
        return (ffb) this.U.getValue();
    }

    public final void D6() {
        ef efVar = this.O;
        if (efVar == null) {
            efVar = null;
        }
        Toolbar toolbar = efVar.s;
        toolbar.setContentInsetStartWithNavigation(0);
        toolbar.setPadding(toolbar.getPaddingLeft(), qbg.a(tya.m), toolbar.getPaddingRight(), toolbar.getPaddingBottom());
        h7f.a.a(getApplicationContext(), toolbar, 2131166180);
    }

    public final void E6(boolean z) {
        if (z) {
            ef efVar = this.O;
            if (efVar == null) {
                efVar = null;
            }
            ConstraintLayout.LayoutParams layoutParams = efVar.g.getLayoutParams();
            layoutParams.v = -1;
            layoutParams.u = 2131362694;
            layoutParams.setMarginEnd(((j1b) getResources()).a.getDimensionPixelOffset(2131166039));
            ef efVar2 = this.O;
            if (efVar2 == null) {
                efVar2 = null;
            }
            efVar2.g.setLayoutParams(layoutParams);
            ef efVar3 = this.O;
            if (efVar3 == null) {
                efVar3 = null;
            }
            ConstraintLayout.LayoutParams layoutParams2 = (ConstraintLayout.LayoutParams) efVar3.b.getLayoutParams();
            layoutParams2.i = 0;
            layoutParams2.j = -1;
            layoutParams2.t = -1;
            layoutParams2.s = 2131363775;
            ((ViewGroup.MarginLayoutParams) layoutParams2).topMargin = 0;
            layoutParams2.setMarginStart(((j1b) getResources()).a.getDimensionPixelOffset(2131166039));
            ((ViewGroup.MarginLayoutParams) layoutParams2).height = ((j1b) getResources()).a.getDimensionPixelOffset(2131165645);
            ef efVar4 = this.O;
            if (efVar4 == null) {
                efVar4 = null;
            }
            efVar4.b.setLayoutParams(layoutParams2);
            ef efVar5 = this.O;
            if (efVar5 == null) {
                efVar5 = null;
            }
            ViewGroup.LayoutParams layoutParams3 = (ConstraintLayout.LayoutParams) efVar5.f.getLayoutParams();
            ((ConstraintLayout.LayoutParams) layoutParams3).j = 2131363775;
            ef efVar6 = this.O;
            if (efVar6 == null) {
                efVar6 = null;
            }
            efVar6.f.setLayoutParams(layoutParams3);
            ef efVar7 = this.O;
            if (efVar7 == null) {
                efVar7 = null;
            }
            efVar7.d.setPadding(0, ((j1b) getResources()).a.getDimensionPixelOffset(2131166163), 0, 0);
        } else {
            ef efVar8 = this.O;
            if (efVar8 == null) {
                efVar8 = null;
            }
            ConstraintLayout.LayoutParams layoutParams4 = efVar8.g.getLayoutParams();
            layoutParams4.v = 0;
            layoutParams4.u = -1;
            layoutParams4.setMarginEnd(0);
            ef efVar9 = this.O;
            if (efVar9 == null) {
                efVar9 = null;
            }
            efVar9.g.setLayoutParams(layoutParams4);
            ef efVar10 = this.O;
            if (efVar10 == null) {
                efVar10 = null;
            }
            ConstraintLayout.LayoutParams layoutParams5 = (ConstraintLayout.LayoutParams) efVar10.b.getLayoutParams();
            layoutParams5.i = -1;
            layoutParams5.j = 2131363775;
            layoutParams5.t = 0;
            layoutParams5.s = -1;
            layoutParams5.setMarginStart(0);
            ((ViewGroup.MarginLayoutParams) layoutParams5).topMargin = ((j1b) getResources()).a.getDimensionPixelOffset(2131165670);
            ((ViewGroup.MarginLayoutParams) layoutParams5).height = ((j1b) getResources()).a.getDimensionPixelOffset(2131166136);
            ef efVar11 = this.O;
            if (efVar11 == null) {
                efVar11 = null;
            }
            efVar11.b.setLayoutParams(layoutParams5);
            ef efVar12 = this.O;
            if (efVar12 == null) {
                efVar12 = null;
            }
            ViewGroup.LayoutParams layoutParams6 = (ConstraintLayout.LayoutParams) efVar12.f.getLayoutParams();
            ((ConstraintLayout.LayoutParams) layoutParams6).j = 2131362694;
            ef efVar13 = this.O;
            if (efVar13 == null) {
                efVar13 = null;
            }
            efVar13.f.setLayoutParams(layoutParams6);
            ef efVar14 = this.O;
            if (efVar14 == null) {
                efVar14 = null;
            }
            efVar14.d.setPadding(0, ((j1b) getResources()).a.getDimensionPixelOffset(2131166189), 0, 0);
        }
        ef efVar15 = this.O;
        ?? r0 = (efVar15 != null ? efVar15 : null).b;
        xcb xcbVar = r0.u;
        ConstraintLayout.LayoutParams layoutParams7 = xcbVar.b.getLayoutParams();
        layoutParams7.setMarginStart(r0.getResources().getDimensionPixelOffset(z ? 2131166221 : 2131165727));
        xcbVar.b.setLayoutParams(layoutParams7);
    }

    public final void F6() {
        ffb C6 = C6();
        xfg.C(C6.r(), (CoroutineContext) null, (fs3) null, new efb(this, C6, null), 3);
        if (!p86.a()) {
            ef efVar = this.O;
            (efVar != null ? efVar : null).r.setVisibility(8);
            return;
        }
        peb b2 = oeb.b(this);
        int b3 = b2.b();
        if (b2.a()) {
            ef efVar2 = this.O;
            (efVar2 != null ? efVar2 : null).r.setVisibility(8);
            return;
        }
        ef efVar3 = this.O;
        if (efVar3 == null) {
            efVar3 = null;
        }
        efVar3.r.setVisibility(0);
        ef efVar4 = this.O;
        if (efVar4 == null) {
            efVar4 = null;
        }
        ProgressBar progressBar = efVar4.n;
        int c2 = oeb.c(b3);
        int i = c2 != 0 ? c2 != 1 ? 2131233498 : 2131233499 : 2131233497;
        Resources resources = getResources();
        ThreadLocal threadLocal = zue.a;
        progressBar.setProgressDrawable(a.a(resources, i, (Resources.Theme) null));
        ef efVar5 = this.O;
        if (efVar5 == null) {
            efVar5 = null;
        }
        efVar5.n.setProgress(b3);
        ef efVar6 = this.O;
        (efVar6 != null ? efVar6 : null).x.setText(oeb.d(this, b2.a, b2.b, b3));
    }

    @Override
    public final void I6(String str, nbb nbbVar) {
        if (nbbVar == null || str == null) {
            return;
        }
        int hashCode = str.hashCode();
        MediaFile mediaFile = nbbVar.b;
        switch (hashCode) {
            case -398049431:
                if (str.equals("OPTION_LOCK_TO_PRIVATE")) {
                    p pVar = z4i.a;
                    if (jz9.N(this)) {
                        t1e.o(this, 2131888560, tya.w().getResources().getQuantityString(2131755073, 1, 1), 2131886188, 2131886529, new beb(this, nbbVar));
                        break;
                    }
                }
                break;
            case 118619317:
                if (str.equals("OPTION_DELETE")) {
                    deb.b(this, Collections.singletonList(nbbVar), true, new b());
                    break;
                }
                break;
            case 519482952:
                if (str.equals("OPTION_RENAME")) {
                    p pVar2 = z4i.a;
                    if (jz9.N(this)) {
                        String h = mediaFile.h();
                        if (mediaFile.a() != null) {
                            h = Files.J(h);
                        }
                        ho4.e(this, h, new ceb(this, nbbVar, null));
                        break;
                    }
                }
                break;
            case 1068662965:
                if (str.equals("OPTION_MX_SHARE")) {
                    String h2 = mediaFile.h();
                    p pVar3 = z4i.a;
                    if (jz9.N(this)) {
                        sgj.v(this, h2, mediaFile.b);
                        kwd.d();
                        break;
                    }
                }
                break;
            case 1600350013:
                if (str.equals("OPTION_PROPERTIES")) {
                    afi.j(this, nbbVar);
                    break;
                }
                break;
            case 2078769250:
                if (str.equals("OPTION_CONVERT_TO_MP3")) {
                    deb.a(this, nbbVar, (List) C6().d.getValue());
                    break;
                }
                break;
        }
    }

    @Override
    public final void d6(int i) {
        boolean z = i == 2;
        E6(z);
        mxb mxbVar = this.P;
        if (mxbVar == null) {
            mxbVar = null;
        }
        List list = mxbVar.i;
        if (list == null || !list.isEmpty()) {
            ef efVar = this.O;
            if (efVar == null) {
                efVar = null;
            }
            RecyclerView recyclerView = efVar.q;
            int f1 = recyclerView.getLayoutManager().f1();
            recyclerView.setLayoutManager(new GridLayoutManager(z ? 4 : 2));
            recyclerView.K0(f1);
            ui1 ui1Var = this.R;
            (ui1Var != null ? ui1Var : null).a();
        }
        D6();
    }

    @Override
    public final FromStack fromStack() {
        FromStack q;
        if (this.S == null) {
            FromStack g = pzh.g(getIntent());
            this.S = g;
            if (g == null || (q = g.newAndPush(From.create("localMediaManager", "localMediaManager", "localMediaManager"))) == null) {
                q = pzh.q(From.create("localMediaManager", "localMediaManager", "localMediaManager"));
            }
            this.S = q;
        }
        return this.S;
    }

    @Override
    public void onClick(@NotNull View v) {
        int id = v.getId();
        if (id == 2131364192) {
            finish();
            return;
        }
        if (id == 2131367595) {
            FromStack fromStack = fromStack();
            Intent intent = new Intent((Context) this, (Class<?>) MediaManagerListActivity.class);
            intent.putExtra("target_tab", 0);
            intent.putExtra("sort_type", 0);
            intent.putExtra(FromStack.FROM_LIST, fromStack);
            startActivity(intent);
            gfh.d(new mdg("mmVideoClicked", weh.c));
            return;
        }
        if (id == 2131364998) {
            FromStack fromStack2 = fromStack();
            Intent intent2 = new Intent((Context) this, (Class<?>) MediaManagerListActivity.class);
            intent2.putExtra("target_tab", 1);
            intent2.putExtra("sort_type", 0);
            intent2.putExtra(FromStack.FROM_LIST, fromStack2);
            startActivity(intent2);
            gfh.d(new mdg("mmMusicClicked", weh.c));
            return;
        }
        if (id == 2131363950) {
            FromStack fromStack3 = fromStack();
            Intent intent3 = new Intent((Context) this, (Class<?>) MediaManagerImageListActivity.class);
            intent3.putExtra("target_tab", 0);
            intent3.putExtra("from", "mm");
            intent3.putExtra(FromStack.FROM_LIST, fromStack3);
            startActivity(intent3);
            gfh.d(new mdg("mmImgClicked", weh.c));
            return;
        }
        if (id == 2131365593) {
            FromStack fromStack4 = fromStack();
            Intent intent4 = new Intent((Context) this, (Class<?>) MediaManagerListActivity.class);
            intent4.putExtra("target_tab", 0);
            intent4.putExtra("sort_type", 3);
            intent4.putExtra(FromStack.FROM_LIST, fromStack4);
            startActivity(intent4);
            G6("recentlyplayed");
            return;
        }
        if (id == 2131364480) {
            FromStack fromStack5 = fromStack();
            Intent intent5 = new Intent((Context) this, (Class<?>) MediaManagerListActivity.class);
            intent5.putExtra("target_tab", 0);
            intent5.putExtra("sort_type", 2);
            intent5.putExtra(FromStack.FROM_LIST, fromStack5);
            startActivity(intent5);
            G6("bigfiles");
            return;
        }
        if (id == 2131365592) {
            FromStack fromStack6 = fromStack();
            Intent intent6 = new Intent((Context) this, (Class<?>) MediaManagerListActivity.class);
            intent6.putExtra("target_tab", 0);
            intent6.putExtra("sort_type", 1);
            intent6.putExtra(FromStack.FROM_LIST, fromStack6);
            startActivity(intent6);
            G6("recentlyadded");
            return;
        }
        if (id == 2131364325 || id == 2131367134) {
            FromStack fromStack7 = fromStack();
            Intent intent7 = new Intent((Context) this, (Class<?>) MediaManagerListActivity.class);
            intent7.putExtra("target_tab", 0);
            intent7.putExtra("sort_type", 4);
            intent7.putExtra(FromStack.FROM_LIST, fromStack7);
            startActivity(intent7);
            G6("haventplayed");
            return;
        }
        if (id == 2131362694) {
            FromStack fromStack8 = fromStack();
            Intent intent8 = new Intent((Context) this, (Class<?>) MediaManagerCleanerActivity.class);
            intent8.putExtra(FromStack.FROM_LIST, fromStack8);
            startActivity(intent8);
            gfh.d(new mdg("cleanerEntryClicked", weh.c));
        }
    }

    @Override
    public final void onCreate(Bundle bundle) {
        setTheme(i0g.b().h("private_folder_theme"));
        super.onCreate(bundle);
        ConstraintLayout inflate = getLayoutInflater().inflate(2131558490, (ViewGroup) null, false);
        int i = 2131362093;
        if (a7.o(2131362093, inflate) != null) {
            i = 2131362694;
            MediaManagerCleanUpLayout mediaManagerCleanUpLayout = (MediaManagerCleanUpLayout) a7.o(2131362694, inflate);
            if (mediaManagerCleanUpLayout != null) {
                i = 2131363244;
                View o = a7.o(2131363244, inflate);
                if (o != null) {
                    m5a a2 = m5a.a(o);
                    i = 2131363246;
                    NestedScrollView o2 = a7.o(2131363246, inflate);
                    if (o2 != null) {
                        i = 2131363460;
                        FastScroller o3 = a7.o(2131363460, inflate);
                        if (o3 != null) {
                            i = 2131363501;
                            LinearLayout linearLayout = (LinearLayout) a7.o(2131363501, inflate);
                            if (linearLayout != null) {
                                i = 2131363775;
                                ConstraintLayout o4 = a7.o(2131363775, inflate);
                                if (o4 != null) {
                                    i = 2131363950;
                                    ConstraintLayout o5 = a7.o(2131363950, inflate);
                                    if (o5 != null) {
                                        i = 2131364192;
                                        AppCompatImageView o6 = a7.o(2131364192, inflate);
                                        if (o6 != null) {
                                            i = 2131364292;
                                            if (a7.o(2131364292, inflate) != null) {
                                                i = 2131364317;
                                                if (a7.o(2131364317, inflate) != null) {
                                                    i = 2131364325;
                                                    AppCompatImageView o7 = a7.o(2131364325, inflate);
                                                    if (o7 != null) {
                                                        i = 2131364423;
                                                        if (a7.o(2131364423, inflate) != null) {
                                                            i = 2131364480;
                                                            LinearLayout linearLayout2 = (LinearLayout) a7.o(2131364480, inflate);
                                                            if (linearLayout2 != null) {
                                                                i = 2131364987;
                                                                View o8 = a7.o(2131364987, inflate);
                                                                if (o8 != null) {
                                                                    i = 2131364998;
                                                                    ConstraintLayout o9 = a7.o(2131364998, inflate);
                                                                    if (o9 != null) {
                                                                        i = 2131365181;
                                                                        if (a7.o(2131365181, inflate) != null) {
                                                                            i = 2131365522;
                                                                            ProgressBar progressBar = (ProgressBar) a7.o(2131365522, inflate);
                                                                            if (progressBar != null) {
                                                                                i = 2131365524;
                                                                                ProgressBar progressBar2 = (ProgressBar) a7.o(2131365524, inflate);
                                                                                if (progressBar2 != null) {
                                                                                    i = 2131365592;
                                                                                    LinearLayout linearLayout3 = (LinearLayout) a7.o(2131365592, inflate);
                                                                                    if (linearLayout3 != null) {
                                                                                        i = 2131365593;
                                                                                        LinearLayout linearLayout4 = (LinearLayout) a7.o(2131365593, inflate);
                                                                                        if (linearLayout4 != null) {
                                                                                            ConstraintLayout constraintLayout = inflate;
                                                                                            int i2 = 2131365791;
                                                                                            RecyclerView o10 = a7.o(2131365791, inflate);
                                                                                            if (o10 != null) {
                                                                                                i2 = 2131365836;
                                                                                                Group o11 = a7.o(2131365836, inflate);
                                                                                                if (o11 != null) {
                                                                                                    i2 = 2131366596;
                                                                                                    Toolbar o12 = a7.o(2131366596, inflate);
                                                                                                    if (o12 != null) {
                                                                                                        i2 = 2131366605;
                                                                                                        if (a7.o(2131366605, inflate) != null) {
                                                                                                            i2 = 2131367046;
                                                                                                            AppCompatTextView o13 = a7.o(2131367046, inflate);
                                                                                                            if (o13 != null) {
                                                                                                                i2 = 2131367050;
                                                                                                                if (a7.o(2131367050, inflate) != null) {
                                                                                                                    i2 = 2131367051;
                                                                                                                    AppCompatTextView o14 = a7.o(2131367051, inflate);
                                                                                                                    if (o14 != null) {
                                                                                                                        i2 = 2131367106;
                                                                                                                        AppCompatTextView o15 = a7.o(2131367106, inflate);
                                                                                                                        if (o15 != null) {
                                                                                                                            i2 = 2131367134;
                                                                                                                            AppCompatTextView o16 = a7.o(2131367134, inflate);
                                                                                                                            if (o16 != null) {
                                                                                                                                i2 = 2131367228;
                                                                                                                                if (a7.o(2131367228, inflate) != null) {
                                                                                                                                    i2 = 2131367229;
                                                                                                                                    AppCompatTextView o17 = a7.o(2131367229, inflate);
                                                                                                                                    if (o17 != null) {
                                                                                                                                        i2 = 2131367323;
                                                                                                                                        if (a7.o(2131367323, inflate) != null) {
                                                                                                                                            i2 = 2131367370;
                                                                                                                                            AppCompatTextView o18 = a7.o(2131367370, inflate);
                                                                                                                                            if (o18 != null) {
                                                                                                                                                i2 = 2131367595;
                                                                                                                                                ConstraintLayout o19 = a7.o(2131367595, inflate);
                                                                                                                                                if (o19 != null) {
                                                                                                                                                    this.O = new ef(constraintLayout, mediaManagerCleanUpLayout, a2, o2, o3, linearLayout, o4, o5, o6, o7, linearLayout2, o9, progressBar, progressBar2, linearLayout3, linearLayout4, o10, o11, o12, o13, o14, o15, o16, o17, o18, o19);
                                                                                                                                                    setContentView(constraintLayout);
                                                                                                                                                    esg.a(this);
                                                                                                                                                    tj5.e(this);
                                                                                                                                                    D6();
                                                                                                                                                    boolean z = this.q == 2;
                                                                                                                                                    mxb mxbVar = new mxb();
                                                                                                                                                    this.P = mxbVar;
                                                                                                                                                    ef efVar = this.O;
                                                                                                                                                    if (efVar == null) {
                                                                                                                                                        efVar = null;
                                                                                                                                                    }
                                                                                                                                                    RecyclerView recyclerView = efVar.q;
                                                                                                                                                    recyclerView.setAdapter(mxbVar);
                                                                                                                                                    recyclerView.setLayoutManager(new GridLayoutManager(z ? 4 : 2));
                                                                                                                                                    int dimensionPixelSize = recyclerView.getResources().getDimensionPixelSize(2131166221);
                                                                                                                                                    int dimensionPixelSize2 = recyclerView.getResources().getDimensionPixelSize(2131165727);
                                                                                                                                                    recyclerView.j(new jxf(dimensionPixelSize, 0, dimensionPixelSize, dimensionPixelSize2, dimensionPixelSize, dimensionPixelSize, dimensionPixelSize, dimensionPixelSize2), -1);
                                                                                                                                                    E6(z);
                                                                                                                                                    this.Q = new wu5(this);
                                                                                                                                                    ef efVar2 = this.O;
                                                                                                                                                    RecyclerView recyclerView2 = (efVar2 == null ? null : efVar2).q;
                                                                                                                                                    FastScroller fastScroller = (efVar2 == null ? null : efVar2).e;
                                                                                                                                                    if (efVar2 == null) {
                                                                                                                                                        efVar2 = null;
                                                                                                                                                    }
                                                                                                                                                    fastScroller.setRecyclerView(efVar2.q);
                                                                                                                                                    fastScroller.setBackgroundResource(R.color.transparent);
                                                                                                                                                    Unit unit = Unit.INSTANCE;
                                                                                                                                                    wu5 wu5Var = this.Q;
                                                                                                                                                    if (wu5Var == null) {
                                                                                                                                                        wu5Var = null;
                                                                                                                                                    }
                                                                                                                                                    ui1 ui1Var = new ui1(recyclerView2, fastScroller, wu5Var);
                                                                                                                                                    this.R = ui1Var;
                                                                                                                                                    ui1Var.a();
                                                                                                                                                    mxb mxbVar2 = this.P;
                                                                                                                                                    if (mxbVar2 == null) {
                                                                                                                                                        mxbVar2 = null;
                                                                                                                                                    }
                                                                                                                                                    ui1 ui1Var2 = this.R;
                                                                                                                                                    if (ui1Var2 == null) {
                                                                                                                                                        ui1Var2 = null;
                                                                                                                                                    }
                                                                                                                                                    mxbVar2.g(nbb.class, new web(ui1Var2, this));
                                                                                                                                                    C6().d.observe(this, new c(new vc1(this, 6)));
                                                                                                                                                    C6().f.observe(this, new c(new a3(this, 6)));
                                                                                                                                                    C6().g.observe(this, new c(new wc1(this, 6)));
                                                                                                                                                    C6().h.observe(this, new c(new hr0(this, 5)));
                                                                                                                                                    C6().i.observe(this, new c(new xc1(this, 4)));
                                                                                                                                                    C6().j.observe(this, new c(new yc1(this, 4)));
                                                                                                                                                    C6().k.observe(this, new c(new pc1(this, 6)));
                                                                                                                                                    ffb C6 = C6();
                                                                                                                                                    xfg.C(C6.r(), (CoroutineContext) null, (fs3) null, new dfb(C6, null), 3);
                                                                                                                                                    ffb C62 = C6();
                                                                                                                                                    xfg.C(C62.r(), (CoroutineContext) null, (fs3) null, new cfb(C62, null), 3);
                                                                                                                                                    ffb C63 = C6();
                                                                                                                                                    xfg.C(C63.r(), (CoroutineContext) null, (fs3) null, new bfb(C63, null), 3);
                                                                                                                                                    F6();
                                                                                                                                                    String stringExtra = getIntent().getStringExtra("from");
                                                                                                                                                    mdg mdgVar = new mdg("mmPageShown", weh.c);
                                                                                                                                                    do2.n("from", stringExtra, mdgVar.b);
                                                                                                                                                    gfh.d(mdgVar);
                                                                                                                                                    ef efVar3 = this.O;
                                                                                                                                                    if (efVar3 == null) {
                                                                                                                                                        efVar3 = null;
                                                                                                                                                    }
                                                                                                                                                    efVar3.i.setOnClickListener(this);
                                                                                                                                                    ef efVar4 = this.O;
                                                                                                                                                    if (efVar4 == null) {
                                                                                                                                                        efVar4 = null;
                                                                                                                                                    }
                                                                                                                                                    efVar4.z.setOnClickListener(this);
                                                                                                                                                    ef efVar5 = this.O;
                                                                                                                                                    if (efVar5 == null) {
                                                                                                                                                        efVar5 = null;
                                                                                                                                                    }
                                                                                                                                                    efVar5.l.setOnClickListener(this);
                                                                                                                                                    ef efVar6 = this.O;
                                                                                                                                                    if (efVar6 == null) {
                                                                                                                                                        efVar6 = null;
                                                                                                                                                    }
                                                                                                                                                    efVar6.h.setOnClickListener(this);
                                                                                                                                                    ef efVar7 = this.O;
                                                                                                                                                    if (efVar7 == null) {
                                                                                                                                                        efVar7 = null;
                                                                                                                                                    }
                                                                                                                                                    efVar7.p.setOnClickListener(this);
                                                                                                                                                    ef efVar8 = this.O;
                                                                                                                                                    if (efVar8 == null) {
                                                                                                                                                        efVar8 = null;
                                                                                                                                                    }
                                                                                                                                                    efVar8.k.setOnClickListener(this);
                                                                                                                                                    ef efVar9 = this.O;
                                                                                                                                                    if (efVar9 == null) {
                                                                                                                                                        efVar9 = null;
                                                                                                                                                    }
                                                                                                                                                    efVar9.o.setOnClickListener(this);
                                                                                                                                                    ef efVar10 = this.O;
                                                                                                                                                    if (efVar10 == null) {
                                                                                                                                                        efVar10 = null;
                                                                                                                                                    }
                                                                                                                                                    efVar10.j.setOnClickListener(this);
                                                                                                                                                    ef efVar11 = this.O;
                                                                                                                                                    if (efVar11 == null) {
                                                                                                                                                        efVar11 = null;
                                                                                                                                                    }
                                                                                                                                                    efVar11.w.setOnClickListener(this);
                                                                                                                                                    ef efVar12 = this.O;
                                                                                                                                                    (efVar12 != null ? efVar12 : null).b.setOnClickListener(this);
                                                                                                                                                    return;
                                                                                                                                                }
                                                                                                                                            }
                                                                                                                                        }
                                                                                                                                    }
                                                                                                                                }
                                                                                                                            }
                                                                                                                        }
                                                                                                                    }
                                                                                                                }
                                                                                                            }
                                                                                                        }
                                                                                                    }
                                                                                                }
                                                                                            }
                                                                                            i = i2;
                                                                                        }
                                                                                    }
                                                                                }
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
        throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
    }

    @Override
    public final void onDestroy() {
        super.onDestroy();
        wu5 wu5Var = this.Q;
        if (wu5Var == null) {
            wu5Var = null;
        }
        wu5Var.c();
        tj5.h(this);
        ((Handler) this.T.getValue()).removeCallbacksAndMessages(null);
    }

    @vgg(threadMode = ThreadMode.MAIN)
    public final void onEvent(@NotNull leb event) {
        if (tj5.a.contains(this)) {
            int i = event.a;
            asg asgVar = this.T;
            if (i == 0) {
                ((Handler) asgVar.getValue()).postDelayed(new d2(this, 5), 500L);
                return;
            }
            if (i == 1) {
                ((Handler) asgVar.getValue()).postDelayed(new bf0(this, 7), 500L);
            } else if (i == 2) {
                ((Handler) asgVar.getValue()).postDelayed(new gn(this, 8), 500L);
            } else {
                if (i != 3) {
                    return;
                }
                ((Handler) asgVar.getValue()).postDelayed(new hn(this, 9), 500L);
            }
        }
    }

    @Override
    public final void onStart() {
        super.onStart();
        L.s.b(this);
        bg.j(this);
    }

    @Override
    public final void onStop() {
        super.onStop();
        L.s.c(this);
        bg.k(this);
        wu5 wu5Var = this.Q;
        if (wu5Var == null) {
            wu5Var = null;
        }
        wu5Var.a();
    }

    @Override
    public final void u5(@NotNull nbb nbbVar) {
        yeb yebVar = new yeb();
        Bundle bundle = new Bundle();
        bundle.putSerializable("PARAM_CONTENT", kia.g(new String[]{"OPTION_MX_SHARE", "OPTION_LOCK_TO_PRIVATE", "OPTION_CONVERT_TO_MP3", "OPTION_RENAME", "OPTION_PROPERTIES", "OPTION_DELETE"}));
        bundle.putInt("param_from", 0);
        bundle.putSerializable("PARAM_MEDIA_FILE", nbbVar);
        yebVar.setArguments(bundle);
        yebVar.showAllowStateLost(getSupportFragmentManager(), "MediaManagerVideoMoreDialog");
        yebVar.i = this;
    }

    @Override
    public final void x2(@NotNull nbb nbbVar, int i) {
        Uri k = nbbVar.b.k();
        ArrayList d = nbb.d((ArrayList) ((List) C6().d.getValue()));
        if (d.isEmpty()) {
            return;
        }
        Uri[] uriArr = new Uri[d.size()];
        int size = d.size();
        for (int i2 = 0; i2 < size; i2++) {
            uriArr[i2] = ((MediaFile) d.get(i2)).k();
        }
        tya.m.d(this, k, uriArr, "mediamanager");
    }

    public static final class b implements u1c.d {
        @Override
        public final void r6(ie4 ie4Var) {
            a7h.c(ie4Var);
        }

        @Override
        public final void J3() {
        }

        @Override
        public final void o1() {
        }
    }

    @Override
    @NotNull
    public final m mo25getActivity() {
        return this;
    }

    @Override
    public final void h6(int i) {
    }

    @Override
    public final void setSupportActionBar(Toolbar toolbar) {
    }
}