正在查看: Handling Master v2 应用的 BhDp.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Handling Master v2 应用的 BhDp.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.k.u;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import androidx.annotation.Nullable;
import sg.bigo.ads.R;
import sg.bigo.ads.api.MediaView;
import sg.bigo.ads.api.VideoController;
import sg.bigo.ads.common.utils.e;
public class BhDp extends Activity {
public VideoController I1IILIil1lLlL;
public MediaView IL1lI11I;
public class I11lllll1ILI1 implements View.OnClickListener {
public I11lllll1ILI1() {
}
@Override
public final void onClick(View view) {
BhDp.this.finish();
}
}
public class ilLiIi111I1ll implements View.OnClickListener {
public ilLiIi111I1ll() {
}
@Override
public final void onClick(View view) {
if (BhDp.this.I1IILIil1lLlL != null) {
if (BhDp.this.I1IILIil1lLlL.isPlaying()) {
BhDp.this.I1IILIil1lLlL.pause();
} else {
BhDp.this.I1IILIil1lLlL.play();
}
}
}
}
public static void I11lllll1ILI1(Context context, String str) {
Intent intent = new Intent();
intent.setClass(context, BhDp.class);
if (!(context instanceof Activity)) {
intent.addFlags(268435456);
}
intent.putExtra("INTENT_VIDEO_URL", str);
context.startActivity(intent);
}
@Override
public void onCreate(@Nullable Bundle bundle) {
super.onCreate(bundle);
try {
String stringExtra = getIntent().getStringExtra("INTENT_VIDEO_URL");
MediaView mediaView = new MediaView(this);
this.IL1lI11I = mediaView;
mediaView.a(stringExtra);
this.I1IILIil1lLlL = this.IL1lI11I.getVideoController();
this.IL1lI11I.setOnClickListener(new ilLiIi111I1ll());
ImageView imageView = new ImageView(this);
imageView.setImageResource(R.drawable.bigo_ad_ic_close);
imageView.setOnClickListener(new I11lllll1ILI1());
FrameLayout frameLayout = new FrameLayout(this);
frameLayout.setBackgroundColor(-16777216);
frameLayout.addView(this.IL1lI11I, new FrameLayout.LayoutParams(-1, -2, 17));
FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(e.a(this, 25), e.a(this, 25), 8388659);
layoutParams.leftMargin = e.a(this, 15);
layoutParams.topMargin = e.a(this, 25);
frameLayout.addView(imageView, layoutParams);
setContentView(frameLayout);
} catch (Throwable unused) {
finish();
}
}
@Override
public void onDestroy() {
super.onDestroy();
try {
VideoController videoController = this.I1IILIil1lLlL;
if (videoController != null) {
videoController.pause();
}
MediaView mediaView = this.IL1lI11I;
if (mediaView != null) {
mediaView.c();
}
} catch (Throwable unused) {
}
}
@Override
public void onPause() {
super.onPause();
try {
VideoController videoController = this.I1IILIil1lLlL;
if (videoController != null) {
videoController.pause();
}
} catch (Throwable unused) {
}
}
@Override
public void onResume() {
super.onResume();
try {
VideoController videoController = this.I1IILIil1lLlL;
if (videoController != null) {
videoController.play();
}
} catch (Throwable unused) {
finish();
}
}
}