package com.mbridge.msdk.activity; import android.os.Build; import android.os.Bundle; import com.mbridge.msdk.foundation.tools.af; import com.mbridge.msdk.foundation.webview.BrowserView; import com.mbridge.msdk.foundation.webview.b; /* loaded from: classes4.dex */ public class MBCommonActivity extends DomainMBCommonActivity { public static final /* synthetic */ int $r8$clinit = 0; private boolean b = false; @Override // com.mbridge.msdk.activity.DomainMBCommonActivity, android.app.Activity public void onCreate(Bundle bundle) { if (Build.VERSION.SDK_INT != 26) { setRequestedOrientation(1); } super.onCreate(bundle); } @Override // android.app.Activity public void onDestroy() { super.onDestroy(); if (this.b) { return; } BrowserView browserView = this.browserView; if (browserView != null) { browserView.setListener(null); this.browserView.destroy(); } BrowserView remove = b.a.remove(this.a); if (remove != null) { remove.setListener(null); remove.destroy(); } } @Override // android.app.Activity public void finish() { BrowserView browserView = this.browserView; if (browserView != null) { browserView.setListener(null); this.browserView.destroy(); } BrowserView remove = b.a.remove(this.a); if (remove != null) { remove.setListener(null); remove.destroy(); } this.b = true; super.finish(); } public void testfun() { af.b("ASDFA", "DSFASDFADSFADSFADS"); } }