导航菜单

页面标题

页面副标题

MedEd v5.3.6 - ExoPlayerActivity.java 源代码

正在查看: MedEd v5.3.6 应用的 ExoPlayerActivity.java JAVA 源代码文件

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


package com.penpencil.physicswallah.feature.player.ui.activity;

import android.content.res.Configuration;
import android.os.Bundle;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentContainerView;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.a;
import androidx.lifecycle.n;
import androidx.navigation.e;
import androidx.navigation.fragment.NavHostFragment;
import androidx.navigation.l;
import com.moengage.campaigns.core.internal.fEH.nJsknQEfchevNg;
import com.penpencil.physicswallah.feature.player.ui.actions.PlayerActionFragment;
import defpackage.Fo0;
import defpackage.ve2;
import java.util.List;
import kotlin.Metadata;
import kotlin.coroutines.CoroutineContext;
import kotlin.jvm.internal.Intrinsics;

@Metadata
public final class ExoPlayerActivity extends NP0<v5, bf2> implements b, sm2 {
    public static final int R0 = 0;
    public Wc1<ve2> N0;
    public final Xc1 O0;
    public final Xc1 P0;
    public boolean Q0;

    public ExoPlayerActivity() {
        super(a.i, new i0(5));
        ((NP0) this).M0 = false;
        addOnContextAvailableListener(new MP0(this));
        this.O0 = le1.b(new Z53(this, 11));
        this.P0 = le1.b(new zt(this, 9));
        this.Q0 = true;
    }

    public static final String Z0(ExoPlayerActivity exoPlayerActivity, String str) {
        return Z93.a("mqtt/liveclass/", str, "/", ((rp) exoPlayerActivity).C0.c().A());
    }

    public final void V0(Ur3 ur3) {
        Intrinsics.checkNotNullParameter((v5) ur3, "<this>");
        bf2 X0 = X0();
        X0.getClass();
        Intrinsics.checkNotNullParameter(this, "callback");
        X0.a0 = this;
        e eVar = (e) this.P0.getValue();
        if (eVar != null) {
            l b = eVar.p().b(2131820548);
            if (X0().q() != null || ((Boolean) X0().k0.getValue()).booleanValue()) {
                b.L(2131363277);
            } else {
                b.L(2131363446);
            }
            eVar.H(b, getIntent().getExtras());
        }
        X0().o();
        n nVar = ((rp) this).F0;
        Intrinsics.checkNotNullExpressionValue(nVar, "lifecycleScope");
        Lx.q(nVar, (CoroutineContext) null, (mV) null, new uo0(this, (iT) null), 3);
    }

    public final void W0(Ur3 ur3) {
        v5 v5Var = (v5) ur3;
        Intrinsics.checkNotNullParameter(v5Var, "<this>");
        v5Var.x(this);
        v5Var.B(X0());
    }

    public final void Y0(Ur3 ur3, Et3 et3) {
        v5 v5Var = (v5) ur3;
        Intrinsics.checkNotNullParameter(v5Var, "<this>");
        Intrinsics.checkNotNullParameter((bf2) et3, "vm");
        v5Var.u.s.setOnClickListener(new K0(this, 3));
        if (getIntent().getBooleanExtra("showPlayerActionOnly", false)) {
            v5Var.s.setVisibility(8);
            FragmentContainerView fragmentContainerView = v5Var.v;
            ViewGroup.LayoutParams layoutParams = fragmentContainerView.getLayoutParams();
            Intrinsics.e(layoutParams, "null cannot be cast to non-null type android.widget.RelativeLayout.LayoutParams");
            RelativeLayout.LayoutParams layoutParams2 = (RelativeLayout.LayoutParams) layoutParams;
            layoutParams2.setMargins(0, 0, 0, 0);
            fragmentContainerView.setLayoutParams(layoutParams2);
            return;
        }
        wm2.a.getClass();
        wm2.H = false;
        String videoType = X0().t().getVideoType();
        if (Intrinsics.b(videoType, "penpencilvdo")) {
            a1(new rI2());
        } else if (Intrinsics.b(videoType, "awsVideo")) {
            a1(new A1());
        }
        n nVar = ((rp) this).F0;
        Intrinsics.checkNotNullExpressionValue(nVar, "lifecycleScope");
        Lx.q(nVar, (CoroutineContext) null, (mV) null, new vo0(this, (iT) null), 3);
    }

    public final void a1(Fo0 fo0) {
        FragmentManager supportFragmentManager = getSupportFragmentManager();
        supportFragmentManager.getClass();
        a aVar = new a(supportFragmentManager);
        aVar.g(2131361985, fo0, (String) null);
        aVar.j(true);
    }

    public final void c(String str, String str2) {
        if (str2 == null || str2.length() == 0) {
            return;
        }
        n nVar = ((rp) this).F0;
        Intrinsics.checkNotNullExpressionValue(nVar, "lifecycleScope");
        Lx.q(nVar, (CoroutineContext) null, (mV) null, new b(str, this, str2, (iT) null), 3);
    }

    public final void d0() {
    }

    public final void e0() {
    }

    public final void f(do0 do0Var) {
        Intrinsics.checkNotNullParameter(do0Var, "exoPlayer");
        n nVar = ((rp) this).F0;
        if (nVar != null) {
            Lx.q(nVar, (CoroutineContext) null, (mV) null, new c(this, do0Var, (iT) null), 3);
        }
    }

    public final void onBackPressed() {
        FragmentManager childFragmentManager;
        List m;
        Zt2 zt2;
        List list;
        wm2.a.getClass();
        if (wm2.A) {
            wm2.c();
            X0().A1.setValue(Boolean.FALSE);
            return;
        }
        if (wm2.G) {
            wm2.f();
            return;
        }
        if (N5.c(this)) {
            if (!getResources().getBoolean(2131034120)) {
                wm2.b();
                return;
            }
            X0().N1.j(Boolean.TRUE);
            X0().n();
            finish();
            return;
        }
        Xc1 xc1 = this.P0;
        e eVar = (e) xc1.getValue();
        if (eVar != null && (zt2 = eVar.i) != null && (list = (List) zt2.b.getValue()) != null && list.size() > 2) {
            e eVar2 = (e) xc1.getValue();
            if (eVar2 != null) {
                eVar2.x();
                return;
            }
            return;
        }
        NavHostFragment navHostFragment = (NavHostFragment) this.O0.getValue();
        Fragment fragment = (navHostFragment == null || (childFragmentManager = navHostFragment.getChildFragmentManager()) == null || (m = childFragmentManager.c.m()) == null) ? null : (Fragment) II.P(m);
        PlayerActionFragment playerActionFragment = fragment instanceof PlayerActionFragment ? (PlayerActionFragment) fragment : null;
        if (playerActionFragment != null) {
            vC0 vc0 = ((cs3) playerActionFragment).i;
            Intrinsics.d(vc0);
            FragmentContainerView fragmentContainerView = vc0.G;
            Intrinsics.checkNotNullExpressionValue(fragmentContainerView, "fragmentNavHost");
            if (fragmentContainerView.getVisibility() == 0) {
                playerActionFragment.t1();
                return;
            }
        }
        X0().N1.j(Boolean.TRUE);
        X0().n();
        finish();
    }

    public final void onConfigurationChanged(Configuration configuration) {
        Intrinsics.checkNotNullParameter(configuration, "newConfig");
        super/*rp*/.onConfigurationChanged(configuration);
        int i = configuration.orientation;
        if (i == 1) {
            if (getResources().getBoolean(2131034120)) {
                wm2.a.getClass();
                wm2.b();
                FragmentContainerView fragmentContainerView = U0().v;
                Intrinsics.checkNotNullExpressionValue(fragmentContainerView, "playerActionContainer");
                fragmentContainerView.setVisibility(0);
                return;
            }
            return;
        }
        if (i == 2 && getResources().getBoolean(2131034120)) {
            wm2.a.getClass();
            wm2.a();
            FragmentContainerView fragmentContainerView2 = U0().v;
            Intrinsics.checkNotNullExpressionValue(fragmentContainerView2, "playerActionContainer");
            fragmentContainerView2.setVisibility(8);
        }
    }

    public final void onCreate(Bundle bundle) {
        super/*U62*/.onCreate(bundle);
        U0().A(Boolean.valueOf(getResources().getConfiguration().orientation == 1));
        wm2.a.getClass();
        wm2.f();
    }

    public final void onDestroy() {
        Wc1<ve2> wc1 = this.N0;
        if (wc1 == null) {
            Intrinsics.n("playerMqttServiceHelper");
            throw null;
        }
        ((ve2) wc1.get()).b();
        super/*xP0*/.onDestroy();
    }

    public final void onPause() {
        super/*androidx.fragment.app.e*/.onPause();
        wm2.a.getClass();
        wm2.i();
    }

    public final void onStop() {
        super/*ag*/.onStop();
    }

    public final void y0() {
    }

    public final void b1() {
        String videoType = X0().t().getVideoType();
        if (Intrinsics.b(videoType, "penpencilvdo")) {
            a1(new rI2());
        } else if (Intrinsics.b(videoType, nJsknQEfchevNg.DYEHNdq)) {
            a1(new A1());
        }
    }
}