正在查看: Handling Master v2 应用的 zVLE.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Handling Master v2 应用的 zVLE.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.xn.psp;
import android.R;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.ViewGroup;
import android.view.WindowManager;
import androidx.annotation.NonNull;
import com.fyber.inneractive.sdk.activities.InneractiveBaseActivity;
import com.fyber.inneractive.sdk.config.global.features.q;
import com.fyber.inneractive.sdk.config.global.features.r;
import com.fyber.inneractive.sdk.external.InneractiveAdSpot;
import com.fyber.inneractive.sdk.external.InneractiveAdSpotManager;
import com.fyber.inneractive.sdk.flow.A;
import com.fyber.inneractive.sdk.flow.v;
import com.fyber.inneractive.sdk.network.u;
import com.fyber.inneractive.sdk.util.IAlog;
import com.fyber.inneractive.sdk.util.m;
import com.fyber.inneractive.sdk.web.W;
import java.lang.ref.WeakReference;
import org.json.mediationsdk.utils.IronSourceConstants;
public class zVLE extends InneractiveBaseActivity {
public static final String EXTRA_KEY_SPOT_ID = "spotId";
public ViewGroup b;
public W c;
public q d = q.FullScreen;
public static void startActivity(Context context, String str) {
Intent intent = new Intent(context, (Class<?>) zVLE.class);
intent.putExtra("spotId", str);
if (!(context instanceof Activity)) {
intent.setFlags(268435456);
}
context.startActivity(intent);
}
public void finish() {
super/*android.app.Activity*/.finish();
W w = this.c;
if (w != null) {
w.C = false;
A a = w.i;
if (a != null) {
A a2 = a;
IAlog.a("onInternalStoreWebpageDismissed callback called", new Object[0]);
if (a2.c != null) {
IAlog.a("%sCalling external interface onAdWillCloseInternalBrowser", new Object[]{IAlog.a(a2)});
a2.c.onAdWillCloseInternalBrowser(a2.a);
}
}
}
}
public void onBackPressed() {
W w = this.c;
if (w != null) {
if (w.x) {
return;
}
if (w.w) {
w.d("navigateBack();");
return;
}
}
super/*android.app.Activity*/.onBackPressed();
}
public void onConfigurationChanged(@NonNull Configuration configuration) {
super/*android.app.Activity*/.onConfigurationChanged(configuration);
WindowManager.LayoutParams attributes = getWindow().getAttributes();
if (attributes.width == m.f() || this.d != q.Modal) {
return;
}
attributes.gravity = 83;
attributes.height = (int) (m.e() * 0.8f);
attributes.width = m.f();
getWindow().setAttributes(attributes);
}
public void onCreate(Bundle bundle) {
InneractiveAdSpot spot;
String stringExtra = getIntent().getStringExtra("spotId");
if (TextUtils.isEmpty(stringExtra)) {
IAlog.f("%sSpot id is empty", new Object[]{IAlog.a(this)});
spot = null;
} else {
spot = InneractiveAdSpotManager.get().getSpot(stringExtra);
}
if (spot == null || spot.getAdContent() == null) {
super.onCreate(bundle);
finish();
return;
}
r a = spot.getAdContent().c.a(r.class);
q d = a != null ? a.d() : q.FullScreen;
this.d = d;
if (d == q.Modal) {
WindowManager.LayoutParams attributes = getWindow().getAttributes();
attributes.gravity = 83;
attributes.height = (int) (m.e() * 0.8f);
attributes.width = m.f();
attributes.dimAmount = 0.3f;
getWindow().setAttributes(attributes);
getWindow().getDecorView().setBackgroundColor(0);
getWindow().addFlags(IronSourceConstants.INIT_COMPLETE);
getWindow().setBackgroundDrawable(new ColorDrawable(0));
} else {
setTheme(R.style.Theme.NoTitleBar.Fullscreen);
}
super.onCreate(bundle);
setContentView(com.fyber.inneractive.sdk.R.layout.ia_layout_activity_internal_store_webpage);
this.b = (ViewGroup) findViewById(com.fyber.inneractive.sdk.R.id.internal_store_content);
W b = spot.getAdContent().b();
this.c = b;
if (b != null) {
b.q = new WeakReference(this);
W w = this.c;
v vVar = w.h;
if (vVar != null) {
vVar.a(u.IGNITE_FLOW_STORE_PAGE_OPENED, w.B ? com.fyber.inneractive.sdk.ignite.m.TRUE_SINGLE_TAP : com.fyber.inneractive.sdk.ignite.m.SINGLE_TAP);
}
this.c.t.set(0);
}
}
public void onDestroy() {
InneractiveAdSpot spot;
W w;
super.onDestroy();
String stringExtra = getIntent().getStringExtra("spotId");
if (TextUtils.isEmpty(stringExtra)) {
IAlog.f("%sSpot id is empty", new Object[]{IAlog.a(this)});
spot = null;
} else {
spot = InneractiveAdSpotManager.get().getSpot(stringExtra);
}
if (spot == null || spot.getAdContent() == null || spot.getAdContent().d() || (w = this.c) == null) {
return;
}
w.y = true;
w.D = false;
w.b.h.remove(w);
w.i = null;
IAlog.a("destroy internalStoreWebpageController", new Object[0]);
this.c = null;
}
public void onPause() {
super/*android.app.Activity*/.onPause();
ViewGroup viewGroup = this.b;
if (viewGroup != null) {
viewGroup.removeAllViews();
}
}
public void onResume() {
super/*android.app.Activity*/.onResume();
W w = this.c;
if (w != null) {
this.b.addView(w.a, new ViewGroup.LayoutParams(-1, -1));
}
}
}