正在查看: BetterTogether v3.0.0 应用的 MraidVideoPlayerActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: BetterTogether v3.0.0 应用的 MraidVideoPlayerActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.mopub.mobileads;
import a0.g0;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import android.view.View;
import com.google.android.gms.auth.api.credentials.ITUX.kbphlTrNhHx;
import com.mopub.common.CreativeOrientation;
import com.mopub.common.DataKeys;
import com.mopub.common.IntentActions;
import com.mopub.common.logging.MoPubLog;
import com.mopub.common.util.DeviceUtils;
import com.mopub.common.util.Intents;
import com.mopub.mobileads.BaseVideoViewController;
import com.mopub.mraid.MraidVideoViewController;
import java.io.Serializable;
public class MraidVideoPlayerActivity extends BaseVideoPlayerActivity implements BaseVideoViewController.BaseVideoViewControllerListener {
public BaseVideoViewController d;
public long e;
public final BaseVideoViewController a(Bundle bundle) {
String stringExtra = getIntent().getStringExtra(BaseVideoPlayerActivity.VIDEO_CLASS_EXTRAS_KEY);
if (kbphlTrNhHx.gLFImSxijUAn.equals(stringExtra)) {
return new VastVideoViewController(this, getIntent().getExtras(), bundle, this.e, this);
}
if ("mraid".equals(stringExtra)) {
return new MraidVideoViewController(this, getIntent().getExtras(), bundle, this);
}
throw new IllegalStateException(g0.j("Unsupported video type: ", stringExtra));
}
@Override
public final void onActivityResult(int i, int i2, Intent intent) {
BaseVideoViewController baseVideoViewController = this.d;
if (baseVideoViewController != null) {
baseVideoViewController.c(i, i2);
}
}
@Override
public void onBackPressed() {
BaseVideoViewController baseVideoViewController = this.d;
if (baseVideoViewController == null || !baseVideoViewController.backButtonEnabled()) {
return;
}
super.onBackPressed();
this.d.d();
}
@Override
public void onConfigurationChanged(Configuration configuration) {
super.onConfigurationChanged(configuration);
BaseVideoViewController baseVideoViewController = this.d;
if (baseVideoViewController != null) {
baseVideoViewController.e(configuration);
}
}
@Override
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
this.e = getIntent().getLongExtra(DataKeys.BROADCAST_IDENTIFIER_KEY, -1L);
try {
this.d = a(bundle);
Serializable serializableExtra = getIntent().getSerializableExtra(DataKeys.CREATIVE_ORIENTATION_KEY);
CreativeOrientation creativeOrientation = CreativeOrientation.DEVICE;
if (serializableExtra instanceof CreativeOrientation) {
creativeOrientation = (CreativeOrientation) serializableExtra;
}
DeviceUtils.lockOrientation(this, creativeOrientation);
this.d.f();
} catch (IllegalStateException unused) {
BaseBroadcastReceiver.broadcastAction(this, this.e, IntentActions.ACTION_FULLSCREEN_FAIL);
finish();
}
}
@Override
public final void onDestroy() {
BaseVideoViewController baseVideoViewController = this.d;
if (baseVideoViewController != null) {
baseVideoViewController.g();
}
super.onDestroy();
}
@Override
public void onFinish() {
finish();
}
@Override
public final void onPause() {
BaseVideoViewController baseVideoViewController = this.d;
if (baseVideoViewController != null) {
baseVideoViewController.h();
}
super.onPause();
}
@Override
public final void onResume() {
super.onResume();
BaseVideoViewController baseVideoViewController = this.d;
if (baseVideoViewController != null) {
baseVideoViewController.i();
}
}
@Override
public final void onSaveInstanceState(Bundle bundle) {
super.onSaveInstanceState(bundle);
BaseVideoViewController baseVideoViewController = this.d;
if (baseVideoViewController != null) {
baseVideoViewController.j(bundle);
}
}
@Override
public void onSetContentView(View view) {
setContentView(view);
}
@Override
public void onSetRequestedOrientation(int i) {
setRequestedOrientation(i);
}
@Override
public void onStartActivityForResult(Class<? extends Activity> cls, int i, Bundle bundle) {
if (cls == null) {
return;
}
try {
startActivityForResult(Intents.getStartActivityIntent(this, cls, bundle), i);
} catch (ActivityNotFoundException unused) {
MoPubLog.log(MoPubLog.SdkLogEvent.CUSTOM, "Activity " + cls.getName() + " not found. Did you declare it in your AndroidManifest.xml?");
}
}
}