正在查看: Handling Master v2 应用的 RUpR.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Handling Master v2 应用的 RUpR.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.nh.l;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.RelativeLayout;
import org.json.b9;
import org.json.bh;
import org.json.cc;
import org.json.er;
import org.json.gh;
import org.json.kw;
import org.json.l;
import org.json.lh;
import org.json.m;
import org.json.mediationsdk.logger.IronLog;
import org.json.mm;
import org.json.nf;
import org.json.nv;
import org.json.o9;
import org.json.sdk.controller.il1IililIi;
import org.json.sdk.controller.v;
import org.json.sdk.utils.Logger;
import org.json.so;
import org.json.u5;
import org.json.vj;
public class RUpR extends Activity implements so, nv {
public static String IL1IliL1l = "removeWebViewContainerView | mContainer is null";
public static final String Il1ilLii = "ControllerActivity";
public static String IllIiliilil = "removeWebViewContainerView | view is null";
public boolean I1IiIIi11LIl;
public String IL1lI11I;
public boolean Ii1IiL1I1LI;
public String Il1LLiiilIi1I;
public v Ilil111lI;
public FrameLayout f364iIlLII1LiL1IL;
public RelativeLayout f365iLLiL1il11l;
public nf f366ilIiIIIliILIi;
public int I1IILIil1lLlL = -1;
public boolean IliiIIIi11LLl = false;
public Handler ILilLIi1Ll = new Handler();
public final Runnable IillIiLLLllil = new ilLiIi111I1ll(this);
public final RelativeLayout.LayoutParams IIILiL1I1iL1 = new RelativeLayout.LayoutParams(-1, -1);
public final FrameLayout I11lllll1ILI1(String str) {
return !IL1lI11I(str) ? this.Ilil111lI.s() : kw.a(getApplicationContext(), bh.a().a(str).getPresentingView());
}
public final void I1IIiIII() {
runOnUiThread(new il1IililIi(this));
}
public final boolean IL1lI11I(String str) {
return (TextUtils.isEmpty(str) || str.equals(Integer.toString(1))) ? false : true;
}
public void ILilLIi1Ll(boolean z) {
if (z) {
iIlLII1LiL1IL();
} else {
I1IIiIII();
}
}
public final void Ii1ILILlilI() {
String str = Il1ilLii;
Logger.i(str, "clearWebviewController");
v vVar = this.Ilil111lI;
if (vVar == null) {
Logger.i(str, "clearWebviewController, null");
return;
}
vVar.a(v.u.Gone);
this.Ilil111lI.C();
this.Ilil111lI.D();
this.Ilil111lI.g(this.Il1LLiiilIi1I, "onDestroy");
}
@SuppressLint({"SourceLockedOrientationActivity"})
public final void Il1LLiiilIi1I() {
String str;
int L = this.f366ilIiIIIliILIi.L(this);
String str2 = Il1ilLii;
Logger.i(str2, "setInitiatePortraitOrientation");
if (L == 0) {
str = "ROTATION_0";
} else if (L == 2) {
Logger.i(str2, "ROTATION_180");
setRequestedOrientation(9);
return;
} else if (L == 1) {
str = "ROTATION_270 Right Landscape";
} else {
if (L != 3) {
Logger.i(str2, "No Rotation");
return;
}
str = "ROTATION_90 Left Landscape";
}
Logger.i(str2, str);
setRequestedOrientation(1);
}
public final void IliiIIIi11LLl() {
String str;
String str2;
int L = this.f366ilIiIIIliILIi.L(this);
String str3 = Il1ilLii;
Logger.i(str3, "setInitiateLandscapeOrientation");
if (L != 0) {
if (L == 2) {
str2 = "ROTATION_180";
} else if (L == 3) {
str2 = "ROTATION_270 Right Landscape";
} else {
if (L != 1) {
Logger.i(str3, "No Rotation");
return;
}
str = "ROTATION_90 Left Landscape";
}
Logger.i(str3, str2);
setRequestedOrientation(8);
return;
}
str = "ROTATION_0";
Logger.i(str3, str);
setRequestedOrientation(0);
}
public final void Ilil111lI() {
Intent intent = getIntent();
il1IililIi(intent.getStringExtra(b9.h.A), intent.getIntExtra(b9.h.B, 0));
}
public final void iIlLII1LiL1IL() {
runOnUiThread(new I1IIiIII(this));
}
public final boolean iLLiL1il11l() {
return this.IL1lI11I == null;
}
@SuppressLint({"SourceLockedOrientationActivity"})
public final void il1IililIi(String str, int i) {
int i2;
if (str != null) {
if (b9.h.C.equalsIgnoreCase(str)) {
IliiIIIi11LLl();
return;
}
if (b9.h.D.equalsIgnoreCase(str)) {
Il1LLiiilIi1I();
return;
}
if (b9.h.G.equalsIgnoreCase(str)) {
if (!this.f366ilIiIIIliILIi.E(this)) {
return;
} else {
i2 = 1;
}
} else if (getRequestedOrientation() != -1) {
return;
} else {
i2 = 4;
}
setRequestedOrientation(i2);
}
}
public final void ilIiIIIliILIi() {
ViewGroup viewGroup;
try {
if (this.f365iLLiL1il11l == null) {
throw new Exception(IL1IliL1l);
}
ViewGroup viewGroup2 = (ViewGroup) this.f364iIlLII1LiL1IL.getParent();
View ilLiIi111I1ll = ilLiIi111I1ll(viewGroup2);
if (ilLiIi111I1ll == null) {
throw new Exception(IllIiliilil);
}
if (isFinishing() && (viewGroup = (ViewGroup) ilLiIi111I1ll.getParent()) != null) {
viewGroup.removeView(ilLiIi111I1ll);
}
viewGroup2.removeView(this.f364iIlLII1LiL1IL);
} catch (Exception e) {
o9.d().a(e);
lh.a(er.s, new gh().a(cc.A, e.getMessage()).a());
Logger.i(Il1ilLii, "removeWebViewContainerView fail " + e.getMessage());
}
}
public final View ilLiIi111I1ll(ViewGroup viewGroup) {
return iLLiL1il11l() ? viewGroup.findViewById(1) : bh.a().a(this.IL1lI11I).getPresentingView();
}
@Override
public boolean onBackButtonPressed() {
onBackPressed();
return true;
}
@Override
public void onBackPressed() {
Logger.i(Il1ilLii, "onBackPressed");
if (u5.a().a(this)) {
return;
}
super.onBackPressed();
}
@Override
public void onCloseRequested() {
finish();
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
this.f366ilIiIIIliILIi = mm.S().f();
try {
new m(this).a();
new l(this).a();
v vVar = (v) vj.b((Context) this).a().j();
this.Ilil111lI = vVar;
vVar.s().setId(1);
this.Ilil111lI.a((so) this);
this.Ilil111lI.a((nv) this);
Intent intent = getIntent();
this.Il1LLiiilIi1I = intent.getStringExtra(b9.h.m);
this.IliiIIIi11LLl = intent.getBooleanExtra(b9.h.v, false);
this.IL1lI11I = intent.getStringExtra("adViewId");
this.Ii1IiL1I1LI = false;
this.I1IiIIi11LIl = intent.getBooleanExtra(b9.h.z0, false);
if (this.IliiIIIi11LLl) {
getWindow().getDecorView().setOnSystemUiVisibilityChangeListener(new I11lllll1ILI1(this));
runOnUiThread(this.IillIiLLLllil);
}
RelativeLayout relativeLayout = new RelativeLayout(this);
this.f365iLLiL1il11l = relativeLayout;
setContentView(relativeLayout, this.IIILiL1I1iL1);
this.f364iIlLII1LiL1IL = I11lllll1ILI1(this.IL1lI11I);
if (this.f365iLLiL1il11l.findViewById(1) == null && this.f364iIlLII1LiL1IL.getParent() != null) {
finish();
}
Ilil111lI();
this.f365iLLiL1il11l.addView(this.f364iIlLII1LiL1IL, this.IIILiL1I1iL1);
} catch (Exception e) {
o9.d().a(e);
IronLog.INTERNAL.error(e.toString());
finish();
}
}
@Override
public void onDestroy() {
super.onDestroy();
String str = Il1ilLii;
Logger.i(str, "onDestroy");
ilIiIIIliILIi();
if (this.Ii1IiL1I1LI) {
return;
}
Logger.i(str, "onDestroy | destroyedFromBackground");
Ii1ILILlilI();
}
@Override
public boolean onKeyDown(int i, KeyEvent keyEvent) {
if (i == 4 && this.Ilil111lI.y()) {
this.Ilil111lI.x();
return true;
}
if (this.IliiIIIi11LLl && (i == 25 || i == 24)) {
this.ILilLIi1Ll.removeCallbacks(this.IillIiLLLllil);
this.ILilLIi1Ll.postDelayed(this.IillIiLLLllil, 500L);
}
return super.onKeyDown(i, keyEvent);
}
@Override
public void onOrientationChanged(String str, int i) {
il1IililIi(str, i);
}
@Override
public void onPause() {
super.onPause();
Logger.i(Il1ilLii, "onPause, isFinishing=" + isFinishing());
il1IililIi.ilLiIi111I1ll(this);
v vVar = this.Ilil111lI;
if (vVar != null) {
vVar.a((Context) this);
if (!this.I1IiIIi11LIl) {
this.Ilil111lI.B();
}
this.Ilil111lI.a(false, b9.h.Z);
this.Ilil111lI.g(this.Il1LLiiilIi1I, b9.h.t0);
}
if (isFinishing()) {
this.Ii1IiL1I1LI = true;
Ii1ILILlilI();
}
}
@Override
public void onResume() {
super.onResume();
Logger.i(Il1ilLii, b9.h.u0);
v vVar = this.Ilil111lI;
if (vVar != null) {
vVar.b(this);
if (!this.I1IiIIi11LIl) {
this.Ilil111lI.F();
}
this.Ilil111lI.a(true, b9.h.Z);
this.Ilil111lI.g(this.Il1LLiiilIi1I, b9.h.u0);
}
il1IililIi.I1IIiIII(this);
}
@Override
public void onStart() {
super.onStart();
Logger.i(Il1ilLii, "onStart");
v vVar = this.Ilil111lI;
if (vVar != null) {
vVar.g(this.Il1LLiiilIi1I, "onStart");
}
}
@Override
public void onStop() {
super.onStop();
Logger.i(Il1ilLii, "onStop");
v vVar = this.Ilil111lI;
if (vVar != null) {
vVar.g(this.Il1LLiiilIi1I, "onStop");
}
}
@Override
public void onUserLeaveHint() {
super.onUserLeaveHint();
Logger.i(Il1ilLii, "onUserLeaveHint");
v vVar = this.Ilil111lI;
if (vVar != null) {
vVar.g(this.Il1LLiiilIi1I, "onUserLeaveHint");
}
}
@Override
public void onVideoEnded() {
ILilLIi1Ll(false);
}
@Override
public void onVideoPaused() {
ILilLIi1Ll(false);
}
@Override
public void onVideoResumed() {
ILilLIi1Ll(true);
}
@Override
public void onVideoStarted() {
ILilLIi1Ll(true);
}
@Override
public void onVideoStopped() {
ILilLIi1Ll(false);
}
@Override
public void onWindowFocusChanged(boolean z) {
super.onWindowFocusChanged(z);
if (this.IliiIIIi11LLl && z) {
runOnUiThread(this.IillIiLLLllil);
}
}
@Override
public void setRequestedOrientation(int i) {
if (this.I1IILIil1lLlL != i) {
Logger.i(Il1ilLii, "Rotation: Req = " + i + " Curr = " + this.I1IILIil1lLlL);
this.I1IILIil1lLlL = i;
super.setRequestedOrientation(i);
}
}
}