导航菜单

页面标题

页面副标题

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

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

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


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

import android.app.Activity;
import android.app.AppOpsManager;
import android.app.PendingIntent;
import android.app.PictureInPictureParams;
import android.app.RemoteAction;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.res.Configuration;
import android.graphics.drawable.Icon;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.widget.Toolbar;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.m;
import com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistParser;
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.ad.link.AdPlacement;
import com.mxtech.videoplayer.ad.online.forceupdate.b;
import com.mxtech.videoplayer.ad.online.model.bean.Feed;
import com.mxtech.videoplayer.ad.online.model.bean.next.OnlineResource;
import com.mxtech.videoplayer.ad.online.model.bean.next.livetv.TVChannel;
import com.mxtech.videoplayer.ad.online.model.bean.next.livetv.TVProgram;
import com.mxtech.videoplayer.ad.online.mxexo.ScrollCoordinatorLayout;
import com.mxtech.videoplayer.ad.online.mxexo.service.ExoPlayerService;
import com.mxtech.videoplayer.ad.view.PlayerParent;
import com.mxtech.videoplayer.service.PlayService;
import defpackage.a7d;
import defpackage.bg;
import defpackage.c7d;
import defpackage.ds5;
import defpackage.f7f;
import defpackage.hff;
import defpackage.hsa;
import defpackage.i0g;
import defpackage.ifd;
import defpackage.inc;
import defpackage.j1b;
import defpackage.j92;
import defpackage.jkd;
import defpackage.jnc;
import defpackage.kfa;
import defpackage.o0f;
import defpackage.ofa;
import defpackage.on8;
import defpackage.p0f;
import defpackage.pfa;
import defpackage.qfa;
import defpackage.r18;
import defpackage.rfa;
import defpackage.s7f;
import defpackage.sfa;
import defpackage.sj8;
import defpackage.sn5;
import defpackage.tfa;
import defpackage.tj5;
import defpackage.tn5;
import defpackage.tya;
import defpackage.ufa;
import defpackage.un5;
import defpackage.wg;
import defpackage.wp5;
import defpackage.xj8;
import defpackage.xlh;
import defpackage.xq5;
import defpackage.xxc;
import defpackage.y82;
import defpackage.zm3;
import java.util.ArrayList;
import java.util.UUID;

public class ExoLivePlayerActivity extends xxc implements FromStackProvider, tfa.e, bk8, xj8, ck8, inc, ScrollCoordinatorLayout.a, s7f, sj8, b {
    public xlh A;
    public xlh.b B;
    public wp5 C;
    public View D;
    public e G;
    public p0f I;
    public boolean J;
    public com.mxtech.videoplayer.ad.online.ad.link.a K;
    public ScrollCoordinatorLayout N;
    public c Q;
    public boolean R;
    public boolean S;
    public tn5 T;
    public OnlineResource u;
    public boolean v;
    public TVChannel w;
    public TVProgram x;
    public qfa y;
    public OnlineResource z;
    public boolean E = false;
    public int F = 0;
    public boolean H = false;

    @NonNull
    public tj8 L = tj8.b;
    public String M = null;
    public final a O = new a();
    public final f7f P = new f7f(new b());

    public class a extends Handler {
        public a() {
        }

        @Override
        public final void handleMessage(Message message) {
            if (message.what != 1) {
                return;
            }
            ExoLivePlayerActivity.this.u6(true);
        }
    }

    public class b implements f7f.c {
        public b() {
        }

        @Override
        public final void a() {
            ExoLivePlayerActivity.this.C();
        }
    }

    public class c extends BroadcastReceiver {
        public c() {
        }

        @Override
        public final void onReceive(Context context, Intent intent) {
            ExoLivePlayerActivity exoLivePlayerActivity;
            wp5 wp5Var;
            k2b k2bVar;
            PictureInPictureParams.Builder actions;
            PictureInPictureParams build;
            if (intent == null || !"media_control".equals(intent.getAction()) || (wp5Var = (exoLivePlayerActivity = ExoLivePlayerActivity.this).C) == null || (k2bVar = wp5Var.p) == null || k2bVar.o() || exoLivePlayerActivity.C.N9()) {
                return;
            }
            if (intent.getIntExtra("control_type", 0) == 1) {
                if (k2bVar.p()) {
                    k2bVar.B();
                } else {
                    k2bVar.C();
                }
            }
            if (Build.VERSION.SDK_INT < 26) {
                return;
            }
            ArrayList<RemoteAction> p6 = exoLivePlayerActivity.p6();
            if (p6.isEmpty()) {
                return;
            }
            actions = wg.a().setActions(p6);
            build = actions.build();
            exoLivePlayerActivity.setPictureInPictureParams(build);
        }
    }

    public static void F6(Activity activity, OnlineResource onlineResource, OnlineResource onlineResource2, OnlineResource onlineResource3, int i, FromStack fromStack, boolean z, Class cls) {
        TVProgram tVProgram;
        int i2 = cls == ExoLivePlayerActivity.class ? 0 : 1;
        if (onlineResource3 instanceof TVChannel) {
            d0d.Z((TVChannel) onlineResource3, onlineResource, onlineResource2, fromStack, i);
        } else if ((onlineResource3 instanceof TVProgram) && (tVProgram = (TVProgram) onlineResource3) != null) {
            d0d.l2((TVChannel) null, tVProgram, onlineResource, onlineResource2, fromStack, 0, tVProgram.isStatusFuture() ? 2 : tVProgram.isStatusLive() ? 1 : 0, i2, "player");
        }
        a7d.a();
        xm3 xm3Var = com.mxtech.videoplayer.ad.online.forceupdate.b.d;
        if (b.a.c(onlineResource3.getType())) {
            return;
        }
        Intent intent = new Intent(activity, (Class<?>) cls);
        intent.putExtra("video", onlineResource3);
        intent.putExtra("from_card", onlineResource2);
        intent.putExtra("make_init_full_screen", z);
        intent.putExtra(FromStack.FROM_LIST, fromStack);
        dr5.b().h();
        activity.startActivity(intent);
    }

    public static void G6(Activity activity, OnlineResource onlineResource, OnlineResource onlineResource2, OnlineResource onlineResource3, FromStack fromStack, int i, boolean z) {
        F6(activity, onlineResource, onlineResource2, onlineResource3, i, fromStack, z, ExoLivePlayerActivity.class);
    }

    @NonNull
    public final tj8 A1() {
        return this.L;
    }

    public final void A6(int i) {
        this.L.q(i);
        Fragment D = getSupportFragmentManager().D(2131363022);
        if (D instanceof sfa) {
            sfa sfaVar = (sfa) D;
            sfaVar.b.setVisibility(8);
            sfaVar.f.setVisibility(0);
            sfaVar.c.setOnClickListener(new v51(sfaVar, 3));
        }
    }

    @Override
    public final void C() {
        f7f f7fVar = this.P;
        if (f7fVar.d) {
            if (!jnc.b().d(this)) {
                this.D = findViewById(2131362853);
                int i = f7fVar.f;
                if (i == 0) {
                    C6(0, 0);
                    return;
                } else if (i == 1) {
                    C6(0, 0);
                    return;
                } else {
                    if (i != 3) {
                        return;
                    }
                    C6(0, 0);
                    return;
                }
            }
            int c2 = jnc.b().c(this);
            this.D = findViewById(2131362853);
            int i2 = f7fVar.f;
            if (i2 == 0) {
                C6(0, 0);
            } else if (i2 == 1) {
                C6(c2, 0);
            } else {
                if (i2 != 3) {
                    return;
                }
                C6(0, c2);
            }
        }
    }

    public final void C6(int i, int i2) {
        Toolbar toolbar = this.q;
        toolbar.setPadding(i, toolbar.getPaddingTop(), i2, this.q.getPaddingBottom());
        View view = this.D;
        if (view != null) {
            view.setPadding(i, view.getPaddingTop(), i2, this.D.getPaddingBottom());
        }
    }

    public final void D6() {
        if (this.y == null) {
            OnlineResource onlineResource = this.u;
            FromStack x = getX();
            qfa qfaVar = new qfa();
            Bundle bundle = new Bundle();
            bundle.putSerializable("card", onlineResource);
            bundle.putParcelable(FromStack.FROM_LIST, x);
            qfaVar.setArguments(bundle);
            this.y = qfaVar;
            FragmentManager supportFragmentManager = getSupportFragmentManager();
            androidx.fragment.app.a h = km4.h(supportFragmentManager, supportFragmentManager);
            h.g(2131363022, this.y, (String) null);
            h.j(true);
        }
    }

    @Override
    public final boolean E4() {
        return this.F != 2 && z6(false, true) == 2;
    }

    public final void E6() {
        this.B.e = null;
        this.v = true;
        this.x = null;
        if (!this.H) {
            w6(this.w);
        }
        this.H = false;
    }

    public final void G4(String str, boolean z, boolean z2, boolean z3) {
        d0d.i2(Z4(), str, z, z2, z3, getX());
    }

    public final void H6() {
        int a2;
        int i;
        long b2 = ir2.b();
        TVProgram tVProgram = this.x;
        if (tVProgram == null) {
            i = 1;
            a2 = 0;
        } else {
            long j = ((l61) tVProgram.getStartTime()).b;
            long j2 = ((l61) this.x.getStopTime()).b;
            a2 = ofa.a(b2, j);
            i = (b2 >= j2 || b2 <= j) ? 0 : 1;
        }
        d0d.l2(this.w, this.x, (OnlineResource) null, this.u, getX(), a2, i, 0, "player");
    }

    @Override
    public final boolean O5() {
        return this.R;
    }

    public final void R2(String str, String str2, boolean z) {
        d0d.h2("pollVoted", Z4(), str, z, str2, getX());
    }

    @Override
    public final ScrollCoordinatorLayout T() {
        return this.N;
    }

    @Override
    public final void T0(int i) {
        if (fuh.B(i)) {
            boolean D = fuh.D(this.w);
            Fragment D2 = getSupportFragmentManager().D(2131365413);
            if (D2 instanceof com.mxtech.videoplayer.ad.online.mxexo.c) {
                if (D) {
                    n6(2131235995);
                }
                ((com.mxtech.videoplayer.ad.online.mxexo.c) D2).Ra(D);
            }
        }
    }

    @Override
    public final void U3(TVProgram tVProgram) {
        k2b k2bVar;
        Fragment D = getSupportFragmentManager().D(2131365413);
        if (D instanceof un5) {
            un5 un5Var = (un5) D;
            if (un5Var.c1 != tVProgram && (k2bVar = un5Var.p) != null) {
                tVProgram.setWatchedDuration(Math.max(k2bVar.i(), tVProgram.getWatchedDuration()));
                r18.g().t(tVProgram);
                r18.g().h(tVProgram);
            }
            un5Var.c1 = tVProgram;
            kfa kfaVar = un5Var.b1;
            if (kfaVar != null) {
                m activity = un5Var.getActivity();
                FromStack x = un5Var.getX();
                cga cgaVar = kfaVar.P;
                if (cgaVar != null) {
                    cgaVar.c();
                }
                cga b2 = cga.b(activity, tVProgram, x);
                kfaVar.P = b2;
                if (b2 == null) {
                    return;
                }
                b2.k = kfaVar;
            }
        }
    }

    public final TVProgram Z4() {
        qfa qfaVar = this.y;
        if (qfaVar != null) {
            return qfaVar.j9();
        }
        return null;
    }

    @Override
    public final From d6() {
        OnlineResource onlineResource = this.z;
        return From.create(onlineResource.getId(), onlineResource.getName(), "livePlayback");
    }

    public final boolean dispatchKeyEvent(KeyEvent keyEvent) {
        Fragment D = getSupportFragmentManager().D(2131365413);
        return (D == null || !(D instanceof ds5)) ? (D == null || !(D instanceof un5)) ? super.dispatchKeyEvent(keyEvent) : ((un5) D).dispatchKeyEvent(keyEvent) || super.dispatchKeyEvent(keyEvent) : ((ds5) D).dispatchKeyEvent(keyEvent) || super.dispatchKeyEvent(keyEvent);
    }

    @Override
    public final f7f e5() {
        return this.P;
    }

    @Override
    public final int e6() {
        return i0g.b().h("online_player_activity");
    }

    @Override
    public final void g5() {
        u6(true);
    }

    @Override
    public final void initToolBar() {
        super.initToolBar();
        ActionBar actionBar = this.p;
        if (actionBar != null) {
            actionBar.u(2131234209);
        }
    }

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

    @Override
    public final void k5() {
        this.R = false;
        wp5 wp5Var = this.C;
        if (wp5Var != null) {
            wp5Var.oa(false);
        }
        wp5 wp5Var2 = this.C;
        if (wp5Var2 != null) {
            wp5Var2.k5();
        }
        jkd.b();
    }

    public final void onAttachedToWindow() {
        super/*android.app.Activity*/.onAttachedToWindow();
        p0f p0fVar = this.I;
        f7f f7fVar = this.P;
        f7fVar.b = p0fVar;
        f7fVar.b(this);
    }

    public final void onBackPressed() {
        Fragment D = getSupportFragmentManager().D(2131365413);
        if (D instanceof un5) {
            if (((un5) D).s()) {
                return;
            }
        } else if ((D instanceof ds5) && ((ds5) D).s()) {
            return;
        }
        super/*ub3*/.onBackPressed();
    }

    public final void onConfigurationChanged(@NonNull Configuration configuration) {
        super.onConfigurationChanged(configuration);
        com.mxtech.videoplayer.ad.online.ad.link.a aVar = this.K;
        if (aVar != null) {
            aVar.a(configuration.orientation != 2);
        }
    }

    @Override
    public final void onCreate(Bundle bundle) {
        c7d c7dVar;
        Intent intent = getIntent();
        String uuid = UUID.randomUUID().toString();
        this.M = uuid;
        intent.putExtra("streamId", uuid);
        hod hodVar = new hod(this.M, (on8) null);
        this.L = hodVar;
        hodVar.f();
        dr5 b2 = dr5.b();
        e eVar = b2.i;
        if (eVar == null) {
            eVar = null;
        } else {
            b2.i = null;
        }
        this.G = eVar;
        if (eVar != null) {
            overridePendingTransition(0, 0);
        }
        this.I = new p0f(this);
        HlsPlaylistParser.c = true;
        Intent intent2 = getIntent();
        if (intent2 != null) {
            String scheme = intent2.getScheme();
            Uri data = intent2.getData();
            if (!TextUtils.isEmpty(scheme) && scheme.equals("mxplay") && data != null) {
                String queryParameter = data.getQueryParameter("id");
                String queryParameter2 = data.getQueryParameter("type");
                if (!TextUtils.isEmpty(queryParameter) && !TextUtils.isEmpty(queryParameter2)) {
                    Feed feed = new Feed();
                    feed.setId(queryParameter);
                    feed.setType(OnlineResource.from(queryParameter2));
                    intent2.putExtra("video", feed);
                }
            }
        }
        this.z = (OnlineResource) getIntent().getSerializableExtra("video");
        setTheme(e6());
        vk4.j(this);
        super.onCreate(bundle);
        ((tya) getApplication()).y(this);
        Toolbar toolbar = this.q;
        if (toolbar != null) {
            toolbar.setNavigationOnClickListener(new sn5(this));
        }
        PlayService.y();
        ExoPlayerService.M();
        this.u = (OnlineResource) getIntent().getSerializableExtra("from_card");
        this.J = getIntent().getBooleanExtra("make_init_full_screen", false);
        this.y = null;
        FragmentManager supportFragmentManager = getSupportFragmentManager();
        androidx.fragment.app.a h = km4.h(supportFragmentManager, supportFragmentManager);
        h.g(2131363022, new sfa(), (String) null);
        h.j(true);
        this.L.c();
        Fragment D = getSupportFragmentManager().D(2131363022);
        if (D instanceof sfa) {
            ((sfa) D).j9();
        }
        y82.o(this, j92.a.a);
        xlh xlhVar = new xlh(this.z, this);
        this.A = xlhVar;
        xlhVar.d();
        e eVar2 = this.G;
        if (eVar2 == null || (c7dVar = eVar2.b) == null) {
            FragmentManager supportFragmentManager2 = getSupportFragmentManager();
            androidx.fragment.app.a h2 = km4.h(supportFragmentManager2, supportFragmentManager2);
            h2.g(2131365413, new xq5(), (String) null);
            h2.j(true);
        } else {
            TVChannel tVChannel = c7dVar.a;
            this.w = tVChannel;
            TVProgram tVProgram = c7dVar.b;
            this.x = tVProgram;
            boolean z = c7dVar.c;
            this.v = z;
            if (z) {
                w6(tVChannel);
            } else {
                x6(tVChannel, tVProgram);
            }
            this.q.setVisibility(0);
            this.H = true;
        }
        ScrollCoordinatorLayout scrollCoordinatorLayout = (ScrollCoordinatorLayout) findViewById(2131365746);
        this.N = scrollCoordinatorLayout;
        scrollCoordinatorLayout.setPipStateProvider(this);
    }

    @Override
    public final void onDestroy() {
        o0f o0fVar;
        this.P.a();
        p0f p0fVar = this.I;
        if (p0fVar != null && (o0fVar = p0fVar.b) != null) {
            o0fVar.removeCallbacksAndMessages(null);
            p0fVar.b = null;
        }
        super.onDestroy();
        bg.h(this);
        this.O.removeCallbacksAndMessages(null);
        Fragment D = getSupportFragmentManager().D(2131365413);
        if (D != null) {
            FragmentManager supportFragmentManager = getSupportFragmentManager();
            supportFragmentManager.getClass();
            androidx.fragment.app.a aVar = new androidx.fragment.app.a(supportFragmentManager);
            aVar.o(D);
            aVar.j(true);
        }
        xlh xlhVar = this.A;
        if (xlhVar != null) {
            xlhVar.c();
        }
        HlsPlaylistParser.c = false;
        if (hsa.a != -1) {
            tya tyaVar = tya.m;
            xrf.f().edit().putInt("key_exit_online_player_num", xrf.f().getInt("key_exit_online_player_num", 1) + 1).apply();
        }
    }

    @Override
    public final void onNewIntent(Intent intent) {
        this.z = (OnlineResource) intent.getSerializableExtra("video");
        super.onNewIntent(intent);
        String uuid = UUID.randomUUID().toString();
        this.M = uuid;
        intent.putExtra("streamId", uuid);
        this.L.d();
        this.L.j(false);
        this.L.deactivate();
        hod hodVar = new hod(this.M, (on8) null);
        this.L = hodVar;
        hodVar.f();
        PlayService.y();
        ExoPlayerService.M();
        this.u = (OnlineResource) intent.getSerializableExtra("from_card");
        this.J = intent.getBooleanExtra("make_init_full_screen", false);
        xlh xlhVar = this.A;
        if (xlhVar != null) {
            xlhVar.c();
        }
        pfa t6 = t6();
        if (t6 != null) {
            FragmentManager supportFragmentManager = getSupportFragmentManager();
            supportFragmentManager.getClass();
            androidx.fragment.app.a aVar = new androidx.fragment.app.a(supportFragmentManager);
            aVar.o(t6);
            aVar.j(true);
        }
        this.y = null;
        xlh xlhVar2 = new xlh(this.z, this);
        this.A = xlhVar2;
        xlhVar2.d();
        this.L.c();
        Fragment D = getSupportFragmentManager().D(2131363022);
        if (D instanceof sfa) {
            ((sfa) D).j9();
        }
    }

    @Override
    public final boolean onOptionsItemSelected(MenuItem menuItem) {
        menuItem.getItemId();
        return false;
    }

    @Override
    public final void onPause() {
        k2b k2bVar;
        super.onPause();
        bg.i(this);
        tj5.c(new hff.f());
        wp5 wp5Var = this.C;
        boolean z = wp5Var == null || (k2bVar = wp5Var.p) == null || k2bVar.l();
        if (!isFinishing() || z) {
            return;
        }
        cce.n.c();
    }

    @Override
    public final void onPictureInPictureModeChanged(boolean z, Configuration configuration) {
        super.onPictureInPictureModeChanged(z, configuration);
        if (z) {
            if (this.S) {
                return;
            }
            this.S = true;
            zm3.a(this, this.Q, new IntentFilter("media_control"), false);
            return;
        }
        k5();
        if (this.S) {
            this.S = false;
            unregisterReceiver(this.Q);
        }
    }

    @Override
    public final void onResume() {
        super.onResume();
        bg.a(this, 3);
        tj5.c(new hff.a());
        if (this.E) {
            if (Build.MODEL.equals("MI PAD 4 PLUS") && Build.MANUFACTURER.equals("Xiaomi")) {
                this.O.sendEmptyMessageDelayed(1, 500L);
            } else {
                u6(true);
            }
            this.E = false;
        }
    }

    @Override
    public final void onStart() {
        throw new UnsupportedOperationException("Method not decompiled: com.mxtech.videoplayer.ad.online.live.ExoLivePlayerActivity.onStart():void");
    }

    @Override
    public final void onStop() {
        super.onStop();
        tn5 tn5Var = this.T;
        if (tn5Var == null) {
            return;
        }
        unregisterReceiver(tn5Var);
    }

    @Override
    public final void onWindowFocusChanged(boolean z) {
        super.onWindowFocusChanged(z);
        if (z && this.K == null) {
            com.mxtech.videoplayer.ad.online.ad.link.a aVar = new com.mxtech.videoplayer.ad.online.ad.link.a();
            this.K = aVar;
            aVar.d(AdPlacement.OTTDetailLink, getLifecycle(), (ViewGroup) findViewById(2131363541), this);
            this.K.a(((j1b) getResources()).a.getConfiguration().orientation != 2);
        }
    }

    public final ArrayList<RemoteAction> p6() {
        ArrayList<RemoteAction> arrayList = new ArrayList<>();
        wp5 wp5Var = this.C;
        if (wp5Var == null) {
            return arrayList;
        }
        k2b k2bVar = wp5Var.p;
        arrayList.add(new RemoteAction(k2bVar.p() ? Icon.createWithResource((Context) this, 2131234869) : Icon.createWithResource((Context) this, 2131234880), "title", "title", PendingIntent.getBroadcast(this, 2, new Intent("media_control").putExtra("control_type", 1), ifd.b)));
        return arrayList;
    }

    public final boolean s6() {
        AppOpsManager appOpsManager;
        return Build.VERSION.SDK_INT >= 26 && (appOpsManager = (AppOpsManager) getSystemService("appops")) != null && appOpsManager.checkOpNoThrow("android:picture_in_picture", getApplicationInfo().uid, getPackageName()) == 0;
    }

    @Override
    public final boolean t1() {
        return this.E;
    }

    public final pfa t6() {
        Fragment D = getSupportFragmentManager().D(2131363022);
        if (D instanceof pfa) {
            return (pfa) D;
        }
        return null;
    }

    public final int u6(boolean z) {
        int z6 = z6(true, z);
        if (z6 == 2 || z6 == 3) {
            jkd.a(this);
            finish();
            overridePendingTransition(0, 2130771981);
        }
        return z6;
    }

    public final void w4(String str, String str2, boolean z) {
        d0d.h2("pollImpressions", Z4(), str, z, str2, getX());
    }

    public final void w6(TVChannel tVChannel) {
        FromStack x = getX();
        boolean z = this.J;
        String str = this.M;
        un5 un5Var = new un5();
        Bundle bundle = new Bundle();
        bundle.putSerializable("channel", tVChannel);
        bundle.putString("streamId", str);
        bundle.putBoolean("make_init_full_screen", z);
        bundle.putParcelable(FromStack.FROM_LIST, x);
        un5Var.setArguments(bundle);
        this.C = un5Var;
        e eVar = this.G;
        if (eVar != null) {
            un5Var.q = eVar.a;
            this.G = null;
        }
        FragmentManager supportFragmentManager = getSupportFragmentManager();
        supportFragmentManager.getClass();
        androidx.fragment.app.a aVar = new androidx.fragment.app.a(supportFragmentManager);
        aVar.g(2131365413, un5Var, (String) null);
        aVar.e();
        this.J = false;
    }

    @Override
    public final void x3() {
        rfa rfaVar;
        if (this.R) {
            return;
        }
        this.R = true;
        wp5 wp5Var = this.C;
        if (wp5Var != null) {
            wp5Var.oa(true);
        }
        wp5 wp5Var2 = this.C;
        if (wp5Var2 != null) {
            wp5Var2.x3();
        }
        ufa ufaVar = this.y.m;
        if (ufaVar != null && (rfaVar = ufaVar.u) != null) {
            rfaVar.dismissAllowingStateLoss();
        }
        if (this.Q == null) {
            this.Q = new c();
        }
        jkd.a(this);
    }

    public final void x6(TVChannel tVChannel, TVProgram tVProgram) {
        FromStack x = getX();
        boolean z = this.J;
        ds5 ds5Var = new ds5();
        Bundle bundle = new Bundle();
        bundle.putSerializable("program", tVProgram);
        bundle.putSerializable("channel", tVChannel);
        bundle.putBoolean("make_init_full_screen", z);
        bundle.putParcelable(FromStack.FROM_LIST, x);
        ds5Var.setArguments(bundle);
        this.C = ds5Var;
        e eVar = this.G;
        if (eVar != null) {
            ds5Var.q = eVar.a;
            this.G = null;
        }
        FragmentManager supportFragmentManager = getSupportFragmentManager();
        supportFragmentManager.getClass();
        androidx.fragment.app.a aVar = new androidx.fragment.app.a(supportFragmentManager);
        aVar.g(2131365413, ds5Var, (String) null);
        aVar.e();
        this.J = false;
    }

    @Override
    public final int z0() {
        PlayerParent playerParent;
        wp5 wp5Var = this.C;
        if (wp5Var == null || (playerParent = wp5Var.x) == null) {
            return -1;
        }
        return playerParent.getHeight();
    }

    public final int z6(boolean r14, boolean r15) {
        throw new UnsupportedOperationException("Method not decompiled: com.mxtech.videoplayer.ad.online.live.ExoLivePlayerActivity.z6(boolean, boolean):int");
    }

    @Override
    public final void T1() {
    }

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