导航菜单

页面标题

页面副标题

哔哩哔哩 v1.6.6 - PlayerActivity.java 源代码

正在查看: 哔哩哔哩 v1.6.6 应用的 PlayerActivity.java JAVA 源代码文件

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


package com.bilibili.tv.player;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import bl.lr;
import bl.wf;
import bl.wg;
import bl.xe;
import bl.xh;
import bl.zs;
import com.bilibili.tv.player.basic.context.PlayerParams;

public class PlayerActivity extends AppCompatActivity implements wf {
    private xh a;

    @Override
    public String a() {
        return "ott-player.player.0.0.pv";
    }

    @Override
    public boolean a_() {
        return wg.a(this);
    }

    @Override
    public Bundle b() {
        return null;
    }

    public static Intent a(Context context, PlayerParams playerParams) {
        Bundle bundle = new Bundle();
        zs.a(context, bundle, playerParams);
        playerParams.mVideoParams.mResolveParamsArray = null;
        Intent intent = new Intent(context, (Class<?>) PlayerActivity.class);
        intent.putExtras(bundle);
        intent.addFlags(872480768);
        return intent;
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        this.a = xe.a(this);
        View a = this.a.a(getLayoutInflater(), (ViewGroup) null, bundle);
        if (a == null) {
            lr.a(this, "应用运行异常,请联系qq群!");
            finish();
        } else {
            setContentView(a);
            this.a.a(a, bundle);
            this.a.a(bundle);
        }
    }

    @Override
    public void onNewIntent(Intent intent) {
        super.onNewIntent(intent);
        this.a.a(intent);
    }

    @Override
    public void onPause() {
        super.onPause();
        this.a.e();
    }

    @Override
    public void onResume() {
        super.onResume();
        this.a.f();
    }

    @Override
    public void onStop() {
        super.onStop();
        this.a.h();
    }

    @Override
    public void onStart() {
        super.onStart();
        this.a.g();
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        this.a.d();
    }

    @Override
    public void onSaveInstanceState(Bundle bundle) {
        super.onSaveInstanceState(bundle);
        this.a.b(bundle);
    }

    @Override
    public boolean onKeyDown(int i, KeyEvent keyEvent) {
        return this.a.a(i, keyEvent) || super.onKeyDown(i, keyEvent);
    }

    @Override
    public boolean onKeyUp(int i, KeyEvent keyEvent) {
        return this.a.b(i, keyEvent) || super.onKeyUp(i, keyEvent);
    }

    @Override
    public void onWindowFocusChanged(boolean z) {
        this.a.b(z);
        super.onWindowFocusChanged(z);
    }

    @Override
    public void onBackPressed() {
        if (this.a == null || !this.a.j()) {
            return;
        }
        super.onBackPressed();
    }

    @Override
    public boolean onTouchEvent(MotionEvent motionEvent) {
        return this.a.a(motionEvent) || super.onTouchEvent(motionEvent);
    }

    @Override
    public void finish() {
        this.a.i();
        super.finish();
    }

    @Override
    public void onMultiWindowModeChanged(boolean z) {
        this.a.a(z);
        super.onMultiWindowModeChanged(z);
    }

    @Override
    public void onActivityResult(int i, int i2, Intent intent) {
        super.onActivityResult(i, i2, intent);
        this.a.a(i, i2, intent);
    }
}