导航菜单

页面标题

页面副标题

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

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

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


package bl;

import android.content.DialogInterface;
import android.content.res.Resources;
import bl.aga;
import com.bilibili.tv.player.basic.context.PlayerParams;
import com.bilibili.tv.player.interfaces.IEventCenter;
import tv.danmaku.ijk.media.player.IMediaPlayer;

public class xt extends xh {
    private aga c;

    @Override
    public boolean onInfo2(IMediaPlayer iMediaPlayer, int i, int i2, long j) {
        return false;
    }

    @Override
    public void b(IEventCenter.EventType eventType, Object... objArr) {
        super.b(eventType, objArr);
        if (eventType == IEventCenter.EventType.RESOLVE_SUCCESS && "qq".equalsIgnoreCase(b().mVideoParams.obtainResolveParams().mFrom)) {
            P();
        }
    }

    private void P() {
        if (this.c == null) {
            Resources resources = o().getResources();
            this.c = new aga.a(o()).a(false).a((CharSequence) resources.getString(2131493104)).a(resources.getString(2131492985), new DialogInterface.OnClickListener() {
                @Override
                public void onClick(DialogInterface dialogInterface, int i) {
                    xt.this.o().finish();
                }
            }).a();
        }
        PlayerParams b = b();
        this.c.a("http://bangumi.bilibili.com/anime/" + b.mVideoParams.obtainResolveParams().mSeasonId);
        if (this.c.isShowing()) {
            return;
        }
        this.c.show();
    }

    @Override
    public void h() {
        super.h();
        if (this.c == null || !this.c.isShowing()) {
            return;
        }
        this.c.dismiss();
    }
}