导航菜单

页面标题

页面副标题

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

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

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


package com.mxtech.videoplayer.ad;

import android.content.ComponentName;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.text.TextUtils;
import com.mxtech.videoplayer.L;
import com.mxtech.videoplayer.ad.online.mxexo.service.ExoPlayerService;
import com.mxtech.videoplayer.n;
import com.mxtech.videoplayer.service.PlayService;
import defpackage.tf;

public class ActivityPipScreen extends ActivityScreen {
    public static final int t5 = 0;
    public boolean r5;
    public String s5;

    @Override
    public final void I9() {
        super.I9();
        if (!isFinishing() && this.r5) {
            this.r5 = false;
            new Handler(Looper.getMainLooper()).postDelayed(new tf(this, 0), 500L);
        }
    }

    @Override
    public final boolean N6() {
        if (!this.V.b0() || !this.V.X()) {
            return super.N6();
        }
        if (this.o2) {
            this.o2 = false;
        }
        return true;
    }

    @Override
    public final boolean Q6() {
        if (!this.V.b0() || !this.V.X()) {
            return false;
        }
        if (!this.o2) {
            return L.s();
        }
        this.o2 = false;
        return true;
    }

    @Override
    public final void finish() {
        super.finish();
        overridePendingTransition(0, 0);
    }

    @Override
    public final void onCreate(Bundle bundle) {
        ComponentName component;
        if (j9()) {
            th0.v("network_streaming_youtube");
        } else {
            th0.v("file_playback_pip");
        }
        ExoPlayerService.M();
        PlayService playService = PlayService.L0;
        if (playService != null) {
            Intent intent = playService.z0;
            if (intent == null || (component = intent.getComponent()) == null || !TextUtils.equals("com.mxtech.videoplayer.ad.ActivityScreen", component.getClassName())) {
                rc();
            } else {
                PlayService.y();
            }
        }
        super.onCreate(bundle);
    }

    @Override
    public final void onNewIntent(Intent intent) {
        PlayService.y();
        ExoPlayerService.M();
        rc();
        qc();
        super.onNewIntent(intent);
    }

    public final void qc() {
        String str;
        this.r5 = true;
        if (this.V != null) {
            Uri uri = this.V.o;
            str = uri != null ? uri.toString() : "";
        } else {
            str = null;
        }
        if (!TextUtils.isEmpty(this.s5) && TextUtils.equals(this.s5, str)) {
            this.r5 = false;
        }
        if (L.s()) {
            this.w3 = 1;
        } else {
            this.w3 = 2;
        }
    }

    public final void rc() {
        Uri uri;
        PlayService playService = PlayService.L0;
        n nVar = (playService == null || playService.d == null) ? null : PlayService.L0.d;
        if (nVar == null || (uri = nVar.o) == null) {
            this.s5 = "";
        } else {
            this.s5 = uri.toString();
        }
    }

    @Override
    public final void y7() {
        qc();
    }
}