- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
114 lines
3.4 KiB
Java
114 lines
3.4 KiB
Java
package com.mbridge.msdk.video.signal.activity;
|
|
|
|
import android.content.res.Configuration;
|
|
import com.mbridge.msdk.activity.MBBaseActivity;
|
|
import com.mbridge.msdk.foundation.d.b;
|
|
import com.mbridge.msdk.foundation.tools.af;
|
|
import com.mbridge.msdk.video.signal.c;
|
|
import com.mbridge.msdk.video.signal.d;
|
|
import com.mbridge.msdk.video.signal.f;
|
|
import com.mbridge.msdk.video.signal.factory.IJSFactory;
|
|
import com.mbridge.msdk.video.signal.factory.a;
|
|
import com.mbridge.msdk.video.signal.g;
|
|
import com.mbridge.msdk.video.signal.i;
|
|
import com.mbridge.msdk.video.signal.j;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public abstract class AbstractJSActivity extends MBBaseActivity implements IJSFactory {
|
|
protected static final String TAG = "AbstractJSActivity";
|
|
protected IJSFactory jsFactory = new a();
|
|
|
|
public boolean canBackPress() {
|
|
return false;
|
|
}
|
|
|
|
public void registerJsFactory(IJSFactory iJSFactory) {
|
|
this.jsFactory = iJSFactory;
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.activity.MBBaseActivity, android.app.Activity
|
|
public void onResume() {
|
|
super.onResume();
|
|
if (b.c) {
|
|
return;
|
|
}
|
|
if (getJSCommon().b()) {
|
|
getActivityProxy().b();
|
|
}
|
|
getActivityProxy().a(0);
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public void onPause() {
|
|
super.onPause();
|
|
if (getJSCommon().b()) {
|
|
getActivityProxy().a();
|
|
}
|
|
getActivityProxy().a(1);
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.activity.MBBaseActivity, android.app.Activity
|
|
public void onDestroy() {
|
|
super.onDestroy();
|
|
}
|
|
|
|
@Override // android.app.Activity, android.content.ComponentCallbacks
|
|
public void onConfigurationChanged(Configuration configuration) {
|
|
super.onConfigurationChanged(configuration);
|
|
if (getJSCommon().b()) {
|
|
getActivityProxy().a(configuration);
|
|
}
|
|
}
|
|
|
|
@Override // android.app.Activity
|
|
public void onBackPressed() {
|
|
if (getJSCommon().b()) {
|
|
if (getJSContainerModule() == null || !getJSContainerModule().miniCardShowing()) {
|
|
getActivityProxy().g();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (canBackPress()) {
|
|
super.onBackPressed();
|
|
} else {
|
|
af.a(TAG, "onBackPressed can't excute");
|
|
}
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.video.signal.factory.IJSFactory
|
|
public com.mbridge.msdk.video.signal.b getActivityProxy() {
|
|
return this.jsFactory.getActivityProxy();
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.video.signal.factory.IJSFactory
|
|
public d getJSCommon() {
|
|
return this.jsFactory.getJSCommon();
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.video.signal.factory.IJSFactory
|
|
public j getJSVideoModule() {
|
|
return this.jsFactory.getJSVideoModule();
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.video.signal.factory.IJSFactory
|
|
public g getJSNotifyProxy() {
|
|
return this.jsFactory.getJSNotifyProxy();
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.video.signal.factory.IJSFactory
|
|
public f getJSContainerModule() {
|
|
return this.jsFactory.getJSContainerModule();
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.video.signal.factory.IJSFactory
|
|
public i getIJSRewardVideoV1() {
|
|
return this.jsFactory.getIJSRewardVideoV1();
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.video.signal.factory.IJSFactory
|
|
public c getJSBTModule() {
|
|
return this.jsFactory.getJSBTModule();
|
|
}
|
|
}
|