正在查看: Handling Master v2 应用的 PtQo.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Handling Master v2 应用的 PtQo.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.iwy.rp;
import android.animation.ValueAnimator;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Bundle;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.CookieSyncManager;
import android.webkit.DownloadListener;
import android.webkit.GeolocationPermissions;
import android.webkit.ValueCallback;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
import com.mbridge.msdk.playercommon.exoplayer2.text.ttml.TtmlNode;
import com.thinkup.core.api.IOfferClickHandler;
import com.thinkup.core.basead.o;
import com.thinkup.core.basead.ui.o.o;
import com.thinkup.core.basead.ui.web.BaseWebView;
import com.thinkup.core.basead.ui.web.WebLoadFailRefrshView;
import com.thinkup.core.basead.ui.web.WebProgressBarView;
import com.thinkup.core.basead.ui.web.m;
import com.thinkup.core.basead.ui.web.n;
import com.thinkup.core.common.n.o0n;
import com.thinkup.core.common.o0n.oo;
import com.thinkup.core.common.on.o00;
import com.thinkup.core.common.on.o0m;
import com.thinkup.core.common.on.o0n0;
import com.thinkup.core.common.on.o0o;
import com.thinkup.core.common.oo0.mo0;
import com.thinkup.core.common.oo0.nn;
import com.thinkup.core.common.oo0.oon;
import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Random;
import org.json.JSONArray;
import org.json.JSONException;
public class PtQo extends Activity implements m {
private static final int on = 343452;
JSONArray m;
private n m00;
private int m0o;
private WebProgressBarView n0;
private ImageView nm;
private ImageView nn;
private WebView no;
private TextView o00;
private Random o0m;
private int o0n;
private ValueAnimator o0o;
private WebLoadFailRefrshView om0;
private RelativeLayout omo;
private o00 on0;
private String onm;
private IOfferClickHandler onn;
private o0o ono;
long oo;
private long oo0;
private Map<String, JSONArray> ooo;
private final int m0 = 1;
private final int mo = 2;
private final int mm = 3;
private final int mn = 0;
int o = 8;
private String oom = "";
private int oon = 0;
private boolean omm = false;
private boolean omn = true;
private ValueCallback<Uri[]> m0m = null;
private final int m0n = 512;
int n = 0;
int o0 = 0;
final long om = 2500;
public class I11lllll1ILI1 implements View.OnClickListener {
public I11lllll1ILI1() {
}
@Override
public final void onClick(View view) {
mo0.o(PtQo.this.om0);
if (PtQo.this.no != null) {
PtQo.this.no.reload();
}
}
}
public class I1IILIil1lLlL extends WebChromeClient {
public class ilLiIi111I1ll implements Runnable {
public ilLiIi111I1ll() {
}
@Override
public final void run() {
PtQo.this.n0.setVisibility(8);
}
}
public I1IILIil1lLlL() {
}
@Override
public final void onGeolocationPermissionsShowPrompt(String str, GeolocationPermissions.Callback callback) {
o.o(PtQo.this, str, callback);
super.onGeolocationPermissionsShowPrompt(str, callback);
}
@Override
public final void onProgressChanged(WebView webView, int i) {
if (PtQo.this.n0 != null) {
if (!PtQo.this.o0o.isRunning()) {
PtQo.this.n0.setProgress(((i * 30) / 100) + 70);
}
if (i == 100) {
if (PtQo.this.o0o.isRunning()) {
PtQo.this.o0o.cancel();
PtQo.this.n0.setProgress(100);
}
o0n.m().o(new ilLiIi111I1ll(), 200L);
}
}
}
@Override
public final void onReceivedTitle(WebView webView, String str) {
super.onReceivedTitle(webView, str);
if (TextUtils.isEmpty(str) || PtQo.this.o00 == null || PtQo.this.o00.getText().toString().length() != 0) {
return;
}
PtQo.this.o00.setText(str);
}
@Override
public final boolean onShowFileChooser(WebView webView, ValueCallback<Uri[]> valueCallback, WebChromeClient.FileChooserParams fileChooserParams) {
try {
PtQo.this.m0m = valueCallback;
Intent intent = new Intent("android.intent.action.GET_CONTENT");
intent.putExtra("android.intent.extra.MIME_TYPES", new String[]{"image/*", "video/*", "audio/*"});
intent.addCategory("android.intent.category.OPENABLE");
intent.setType("image/* video/* audio/*");
PtQo.this.startActivityForResult(Intent.createChooser(intent, "File Chooser"), 512);
return true;
} catch (Throwable unused) {
return false;
}
}
}
public class I1IIiIII implements ValueAnimator.AnimatorUpdateListener {
public I1IIiIII() {
}
@Override
public final void onAnimationUpdate(@NonNull ValueAnimator valueAnimator) {
int intValue = ((Integer) valueAnimator.getAnimatedValue()).intValue();
if (PtQo.this.n0 == null || intValue % PtQo.this.o0n != 0) {
return;
}
PtQo ptQo = PtQo.this;
ptQo.o0n = ptQo.o0m.nextInt(12) + 3;
PtQo.this.n0.setProgress(intValue);
}
}
public class IL1lI11I implements View.OnClickListener {
public IL1lI11I() {
}
@Override
public final void onClick(View view) {
PtQo.this.finish();
}
}
public class ILIlil1Lii implements DialogInterface.OnClickListener {
final String m;
final int o;
public ILIlil1Lii(int i, String str) {
this.o = i;
this.m = str;
}
@Override
public final void onClick(DialogInterface dialogInterface, int i) {
int i2 = this.o;
if (i2 == 7) {
PtQo.this.o0 = 2;
}
PtQo.m(PtQo.this, this.m, i2);
PtQo.m0(PtQo.this);
oo.o(PtQo.this.on0, PtQo.this.ono, 3, PtQo.this.oo > 0, 1, this.m);
PtQo.this.oo();
}
}
public class Ii1ILILlilI implements View.OnClickListener {
public Ii1ILILlilI() {
}
@Override
public final void onClick(View view) {
if (PtQo.this.no == null || !PtQo.this.no.canGoBack()) {
PtQo.this.finish();
} else {
PtQo.this.no.goBack();
}
}
}
public class Ilil111lI implements DialogInterface.OnClickListener {
public Ilil111lI() {
}
@Override
public final void onClick(DialogInterface dialogInterface, int i) {
dialogInterface.dismiss();
o0o o0oVar = PtQo.this.ono;
int m = PtQo.this.on0.m();
String oom = PtQo.this.on0.oom();
PtQo ptQo = PtQo.this;
oo.o(o0oVar, m, oom, ptQo.m, ptQo.oom, 1);
PtQo.this.oo();
}
}
public class iL1LiI1iii implements DialogInterface.OnClickListener {
final String o;
public iL1LiI1iii(String str) {
this.o = str;
}
@Override
public final void onClick(DialogInterface dialogInterface, int i) {
oo.o(PtQo.this.on0, PtQo.this.ono, 3, PtQo.this.oo > 0, 2, this.o);
}
}
public class il1IililIi implements DownloadListener {
public il1IililIi() {
}
@Override
public final void onDownloadStart(String str, String str2, String str3, String str4, long j) {
o0n.m();
if (PtQo.this.ono != null && PtQo.this.ono.nn != null && PtQo.this.ono.nn.ono0() != 2) {
PtQo.o0(PtQo.this);
try {
Toast.makeText(PtQo.this.getApplicationContext(), nn.o(PtQo.this.getApplicationContext(), "myoffer_intercept_web_file_download", "string"), 0).show();
return;
} catch (Throwable unused) {
return;
}
}
if (PtQo.this.on0 == null || PtQo.this.ono == null || TextUtils.isEmpty(PtQo.this.on0.m0n())) {
if (PtQo.on(PtQo.this)) {
PtQo.o(PtQo.this, str, 11);
return;
}
PtQo.m(PtQo.this, str, 11);
} else if (PtQo.this.onn != null && (PtQo.this.onn instanceof IOfferClickHandler) && PtQo.this.onn.startDataFetchApp(PtQo.this.getApplicationContext(), PtQo.this.on0, PtQo.this.ono, str)) {
PtQo ptQo = PtQo.this;
ptQo.o = 6;
ptQo.o0 = 1;
} else if (PtQo.on(PtQo.this)) {
PtQo.o(PtQo.this, str, 7);
return;
} else {
PtQo ptQo2 = PtQo.this;
ptQo2.o0 = 2;
PtQo.m(ptQo2, str, 7);
}
PtQo.m0(PtQo.this);
PtQo.this.oo();
}
}
public class ilLiIi111I1ll implements DialogInterface.OnClickListener {
public ilLiIi111I1ll() {
}
@Override
public final void onClick(DialogInterface dialogInterface, int i) {
dialogInterface.dismiss();
o0o o0oVar = PtQo.this.ono;
int m = PtQo.this.on0.m();
String oom = PtQo.this.on0.oom();
PtQo ptQo = PtQo.this;
oo.o(o0oVar, m, oom, ptQo.m, ptQo.oom, 0);
}
}
private static void m() {
}
public static int m0(PtQo ptQo) {
ptQo.oon = 2;
return 2;
}
private static void n() {
}
public static boolean o0(PtQo ptQo) {
ptQo.omm = true;
return true;
}
private TextView on() {
TextView textView = new TextView(this);
new LinearLayout.LayoutParams(0, -2, 1.0f);
textView.setPadding(nn.o(this, 20.0f), 0, 0, nn.o(this, 2.0f));
textView.setTextSize(1, 18.0f);
textView.setTextColor(Color.parseColor("#666666"));
textView.setMaxLines(1);
textView.setEllipsize(TextUtils.TruncateAt.END);
return textView;
}
@Override
public void callbackClickResult(o0n0 o0n0Var) {
this.o = o0n0Var.n0;
if (o0n0Var.nm) {
if (o0n0Var.no) {
this.n = 1;
this.oon = 2;
oo();
} else {
this.n = 2;
if (o0n0Var.o00) {
oo.o(this.on0, this.ono, 2, this.oo > 0, 0, o0n0Var.nn);
}
}
}
}
@Override
public boolean dispatchTouchEvent(MotionEvent motionEvent) {
if (motionEvent.getAction() == 0) {
this.oo = System.currentTimeMillis();
this.omn = true;
}
return super.dispatchTouchEvent(motionEvent);
}
@Override
public void finish() {
o0m o0mVar;
o0o o0oVar = this.ono;
if (o0oVar != null && (o0mVar = o0oVar.nn) != null && o0mVar.mm() == 1) {
try {
AlertDialog.Builder builder = new AlertDialog.Builder(this, nn.o(this, "system_dialog", TtmlNode.TAG_STYLE));
builder.setMessage(getString(nn.o(this, "web_land_page_dialog_title", "string"))).setCancelable(true).setPositiveButton(getString(nn.o(this, "web_land_page_dialog_stay", "string")), new ilLiIi111I1ll()).setNegativeButton(getString(nn.o(this, "web_land_page_dialog_yes", "string")), new Ilil111lI());
builder.create().show();
return;
} catch (Throwable unused) {
}
}
oo();
}
@Override
public o00 getBaseAdContent() {
return this.on0;
}
@Override
public WebProgressBarView getWebProgressBarView() {
return this.n0;
}
@Override
public void onActivityResult(int r8, int r9, android.content.Intent r10) {
throw new UnsupportedOperationException("Method not decompiled: com.iwy.rp.PtQo.onActivityResult(int, int, android.content.Intent):void");
}
@Override
public void onBackPressed() {
WebView webView = this.no;
if (webView == null || !webView.canGoBack()) {
super.onBackPressed();
} else {
this.no.goBack();
}
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
this.oo0 = SystemClock.elapsedRealtime();
this.ooo = new LinkedHashMap();
setResult(-1);
Intent intent = getIntent();
if (intent != null) {
try {
Serializable serializableExtra = intent.getSerializableExtra(o.C0214o.n);
if (serializableExtra != null && (serializableExtra instanceof o00)) {
this.on0 = (o00) serializableExtra;
this.m00 = new n(this.on0);
}
} catch (Throwable th) {
th.printStackTrace();
}
try {
Serializable serializableExtra2 = intent.getSerializableExtra(o.C0214o.oo);
if (serializableExtra2 != null && (serializableExtra2 instanceof o0o)) {
this.ono = (o0o) serializableExtra2;
}
} catch (Throwable th2) {
th2.printStackTrace();
}
try {
Serializable serializableExtra3 = intent.getSerializableExtra(o.C0214o.mn);
if (serializableExtra3 != null && (serializableExtra3 instanceof IOfferClickHandler)) {
this.onn = (IOfferClickHandler) serializableExtra3;
}
} catch (Throwable th3) {
th3.printStackTrace();
}
try {
this.onm = intent.getStringExtra(o.C0214o.mo);
} catch (Throwable th4) {
th4.printStackTrace();
}
try {
this.m0o = intent.getIntExtra(o.C0214o.o00, -1);
} catch (Throwable th5) {
th5.printStackTrace();
}
this.omn = true;
try {
this.omn = intent.getBooleanExtra(o.C0214o.o0o, true);
} catch (Throwable th6) {
th6.printStackTrace();
}
}
String str = this.onm;
if (TextUtils.isEmpty(str)) {
o00 o00Var = this.on0;
str = o00Var != null ? o00Var.m0m() : "";
}
Context applicationContext = getApplicationContext();
if (TextUtils.isEmpty(str)) {
Toast.makeText(applicationContext, nn.o(applicationContext, "basead_click_empty", "string"), 0).show();
this.oon = 3;
oo();
return;
}
if (this.omn) {
o0n0 o = com.thinkup.core.basead.o.o.o(applicationContext, str, getBaseAdContent());
if (o.no) {
callbackClickResult(o);
return;
}
callbackClickResult(o);
}
RelativeLayout om = om();
this.omo = om;
if (om == null) {
com.thinkup.core.basead.o.o.m(str);
oo();
return;
}
setContentView(om);
this.nm.setOnClickListener(new Ii1ILILlilI());
this.nn.setOnClickListener(new IL1lI11I());
com.thinkup.core.basead.ui.o.o.o(this);
com.thinkup.core.basead.ui.o.o.o(this.no, this, this);
this.no.setDownloadListener(new il1IililIi());
o0n0 o2 = com.thinkup.core.basead.o.o.o(str);
this.o = o2.n0;
this.no.loadUrl(o2.nn);
recordRedirectUrl(this.no.getUrl());
}
@Override
public void onDestroy() {
o0o o0oVar;
super.onDestroy();
ValueAnimator valueAnimator = this.o0o;
if (valueAnimator != null) {
valueAnimator.cancel();
this.o0o = null;
}
WebView webView = this.no;
if (webView != null) {
webView.setDownloadListener(null);
this.no.destroy();
}
this.no = null;
o00 o00Var = this.on0;
if (o00Var == null || (o0oVar = this.ono) == null) {
return;
}
int m = o00Var.m();
String oom = this.on0.oom();
Map<String, JSONArray> map = this.ooo;
int i = this.n;
int i2 = this.o0;
int i3 = this.o;
String str = this.onm;
int i4 = this.ono.mm;
int i5 = this.m0o;
long elapsedRealtime = SystemClock.elapsedRealtime() - this.oo0;
String str2 = this.oom;
int i6 = this.oon;
oo.o(o0oVar, m, oom, map, i, i2, i3, str, i4, i5, elapsedRealtime, str2, i6 == 0 ? 1 : i6, this.omm);
}
@Override
public void onPause() {
super.onPause();
CookieSyncManager.getInstance().stopSync();
WebView webView = this.no;
if (webView != null) {
webView.setWebChromeClient(null);
com.thinkup.core.basead.ui.o.o.o(this.no, isFinishing());
}
}
@Override
public void onResume() {
super.onResume();
CookieSyncManager.getInstance().startSync();
WebView webView = this.no;
if (webView != null) {
webView.setWebChromeClient(new I1IILIil1lLlL());
this.no.onResume();
}
}
@Override
public void onStart() {
super.onStart();
}
@Override
public void onWebFinish() {
oo();
}
@Override
public void onWebPageFinish(WebView webView, String str) {
WebView webView2;
WebLoadFailRefrshView webLoadFailRefrshView = this.om0;
if (webLoadFailRefrshView != null && webLoadFailRefrshView.getParent() == null && (webView2 = this.no) != null) {
webView2.setVisibility(0);
}
webView.canGoBack();
webView.canGoForward();
if (!TextUtils.isEmpty(str) && this.oon != 3 && TextUtils.equals(this.oom, str) && !isFinishing()) {
this.oon = 2;
JSONArray jSONArray = this.ooo.get(str);
if (jSONArray != null) {
try {
StringBuilder sb = new StringBuilder();
sb.append(System.currentTimeMillis());
jSONArray.put(1, sb.toString());
this.ooo.put(str, jSONArray);
} catch (JSONException unused) {
}
}
}
n nVar = this.m00;
if (nVar != null) {
nVar.o(webView, str);
}
}
@Override
public void onWebPageLoadError(WebView webView, String str) {
if (TextUtils.equals(this.oom, str)) {
this.oon = 3;
}
WebLoadFailRefrshView webLoadFailRefrshView = this.om0;
if (webLoadFailRefrshView != null) {
mo0.o(webLoadFailRefrshView);
} else {
WebLoadFailRefrshView webLoadFailRefrshView2 = new WebLoadFailRefrshView(this);
this.om0 = webLoadFailRefrshView2;
WebView webView2 = this.no;
if (webView2 != null) {
webLoadFailRefrshView2.setLayoutParams(webView2.getLayoutParams());
}
this.om0.setOnRefreshListener(new I11lllll1ILI1());
}
WebView webView3 = this.no;
if (webView3 != null) {
webView3.setVisibility(8);
}
this.omo.addView(this.om0);
}
@Override
public void onWebPageStart(WebView webView, String str) {
if (!TextUtils.isEmpty(str)) {
if (TextUtils.equals(this.oom, str)) {
this.oon = 1;
}
JSONArray jSONArray = this.ooo.get(str);
if (jSONArray != null) {
try {
StringBuilder sb = new StringBuilder();
sb.append(System.currentTimeMillis());
jSONArray.put(0, sb.toString());
jSONArray.put(1, "");
this.ooo.put(str, jSONArray);
} catch (JSONException unused) {
}
}
}
WebLoadFailRefrshView webLoadFailRefrshView = this.om0;
if (webLoadFailRefrshView != null) {
mo0.o(webLoadFailRefrshView);
}
}
@Override
public void recordRedirectUrl(String str) {
if (this.m == null) {
this.m = new JSONArray();
}
this.m.put(str);
if (this.ooo.size() > 0) {
JSONArray jSONArray = this.ooo.get(this.oom);
try {
if (this.oon == 0 && jSONArray != null) {
if (TextUtils.isEmpty(jSONArray.getString(1))) {
StringBuilder sb = new StringBuilder();
sb.append(System.currentTimeMillis());
jSONArray.put(1, sb.toString());
}
this.ooo.put(this.oom, jSONArray);
}
} catch (Throwable unused) {
}
}
JSONArray jSONArray2 = new JSONArray();
StringBuilder sb2 = new StringBuilder();
sb2.append(System.currentTimeMillis());
jSONArray2.put(sb2.toString());
jSONArray2.put("");
this.ooo.put(str, jSONArray2);
this.oom = str;
this.oon = 0;
}
@Override
public boolean supportDeeplinkJump() {
return this.omn;
}
private void m(String str, int i) {
if (TextUtils.isEmpty(str)) {
return;
}
oon.o(str);
this.o = i;
}
private boolean m0() {
return System.currentTimeMillis() - this.oo > 2500;
}
private void o0() {
this.nm.setOnClickListener(new Ii1ILILlilI());
this.nn.setOnClickListener(new IL1lI11I());
}
private RelativeLayout om() {
RelativeLayout relativeLayout = new RelativeLayout(this);
relativeLayout.setBackgroundColor(-1);
relativeLayout.setLayoutParams(new LinearLayout.LayoutParams(-1, -1));
LinearLayout linearLayout = new LinearLayout(this);
linearLayout.setId(on);
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-1, nn.o(this, 55.0f));
layoutParams.addRule(10);
linearLayout.setGravity(16);
linearLayout.setLayoutParams(layoutParams);
linearLayout.setBackgroundColor(Color.parseColor("#FFFFFF"));
int o = nn.o(this, 16.0f);
linearLayout.setPadding(o, 0, o, 0);
relativeLayout.addView(linearLayout);
this.nm = o(getResources().getDrawable(nn.o(this, "browser_left_icon", "drawable")));
this.nn = o(getResources().getDrawable(nn.o(this, "browser_close_icon", "drawable")));
linearLayout.addView(this.nm);
linearLayout.addView(this.nn);
TextView textView = new TextView(this);
new LinearLayout.LayoutParams(0, -2, 1.0f);
textView.setPadding(nn.o(this, 20.0f), 0, 0, nn.o(this, 2.0f));
textView.setTextSize(1, 18.0f);
textView.setTextColor(Color.parseColor("#666666"));
textView.setMaxLines(1);
textView.setEllipsize(TextUtils.TruncateAt.END);
this.o00 = textView;
linearLayout.addView(textView);
try {
this.no = new BaseWebView(this);
RelativeLayout.LayoutParams layoutParams2 = new RelativeLayout.LayoutParams(-1, -1);
layoutParams2.addRule(3, on);
this.no.setLayoutParams(layoutParams2);
relativeLayout.addView(this.no);
View view = new View(this);
view.setBackgroundColor(-2434342);
RelativeLayout.LayoutParams layoutParams3 = new RelativeLayout.LayoutParams(-1, nn.o(this, 1.0f));
layoutParams3.addRule(3, on);
view.setLayoutParams(layoutParams3);
relativeLayout.addView(view);
WebProgressBarView webProgressBarView = new WebProgressBarView(this);
this.n0 = webProgressBarView;
webProgressBarView.setProgress(0);
RelativeLayout.LayoutParams layoutParams4 = new RelativeLayout.LayoutParams(-1, nn.o(this, 4.0f));
layoutParams4.addRule(3, on);
relativeLayout.addView(this.n0, layoutParams4);
Random random = new Random();
this.o0m = random;
this.o0n = random.nextInt(12) + 3;
ValueAnimator ofInt = ValueAnimator.ofInt(0, 70);
this.o0o = ofInt;
ofInt.setDuration(1000L);
this.o0o.addUpdateListener(new I1IIiIII());
this.o0o.start();
return relativeLayout;
} catch (Throwable unused) {
return null;
}
}
public void oo() {
try {
((ViewGroup) getWindow().getDecorView()).removeAllViews();
} catch (Throwable unused) {
}
super.finish();
}
public static void o(Context context, com.thinkup.core.basead.m.o oVar) {
Intent intent = new Intent();
intent.setClass(context, PtQo.class);
intent.putExtra(o.C0214o.n, oVar.n);
intent.putExtra(o.C0214o.oo, oVar.m0);
intent.putExtra(o.C0214o.mo, oVar.om);
intent.putExtra(o.C0214o.o00, oVar.mo);
intent.putExtra(o.C0214o.o0o, oVar.mn);
IOfferClickHandler iOfferClickHandler = oVar.on;
if (iOfferClickHandler != null) {
intent.putExtra(o.C0214o.mn, iOfferClickHandler);
}
intent.addFlags(268435456);
context.startActivity(intent);
}
public static void m(PtQo ptQo, String str, int i) {
if (TextUtils.isEmpty(str)) {
return;
}
oon.o(str);
ptQo.o = i;
}
public static boolean on(PtQo ptQo) {
return System.currentTimeMillis() - ptQo.oo > 2500;
}
public static void o(Context context, String str) {
com.thinkup.core.basead.m.o oVar = new com.thinkup.core.basead.m.o();
oVar.om = str;
o(context, oVar);
}
private void o() {
Intent intent = getIntent();
if (intent != null) {
try {
Serializable serializableExtra = intent.getSerializableExtra(o.C0214o.n);
if (serializableExtra != null && (serializableExtra instanceof o00)) {
this.on0 = (o00) serializableExtra;
this.m00 = new n(this.on0);
}
} catch (Throwable th) {
th.printStackTrace();
}
try {
Serializable serializableExtra2 = intent.getSerializableExtra(o.C0214o.oo);
if (serializableExtra2 != null && (serializableExtra2 instanceof o0o)) {
this.ono = (o0o) serializableExtra2;
}
} catch (Throwable th2) {
th2.printStackTrace();
}
try {
Serializable serializableExtra3 = intent.getSerializableExtra(o.C0214o.mn);
if (serializableExtra3 != null && (serializableExtra3 instanceof IOfferClickHandler)) {
this.onn = (IOfferClickHandler) serializableExtra3;
}
} catch (Throwable th3) {
th3.printStackTrace();
}
try {
this.onm = intent.getStringExtra(o.C0214o.mo);
} catch (Throwable th4) {
th4.printStackTrace();
}
try {
this.m0o = intent.getIntExtra(o.C0214o.o00, -1);
} catch (Throwable th5) {
th5.printStackTrace();
}
this.omn = true;
try {
this.omn = intent.getBooleanExtra(o.C0214o.o0o, true);
} catch (Throwable th6) {
th6.printStackTrace();
}
}
}
private void o(String str) {
com.thinkup.core.basead.ui.o.o.o(this.no, this, this);
this.no.setDownloadListener(new il1IililIi());
o0n0 o = com.thinkup.core.basead.o.o.o(str);
this.o = o.n0;
this.no.loadUrl(o.nn);
recordRedirectUrl(this.no.getUrl());
}
private void o(String str, int i) {
if (TextUtils.isEmpty(str)) {
return;
}
AlertDialog.Builder builder = new AlertDialog.Builder(this, nn.o(this, "system_dialog", TtmlNode.TAG_STYLE));
builder.setMessage(getString(nn.o(this, "web_download_file_confirm_title", "string"))).setCancelable(true).setPositiveButton(getString(nn.o(this, "web_download_file_confirm", "string")), new ILIlil1Lii(i, str)).setNegativeButton(getString(nn.o(this, "web_download_file_cancel", "string")), new iL1LiI1iii(str));
builder.create().show();
}
private ImageView o(Drawable drawable) {
ImageView imageView = new ImageView(this);
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(nn.o(this, 48.0f), nn.o(this, 48.0f));
layoutParams.gravity = 16;
layoutParams.rightMargin = nn.o(this, 6.0f);
imageView.setLayoutParams(layoutParams);
int o = nn.o(this, 16.0f);
imageView.setPadding(o, o, o, o);
imageView.setScaleType(ImageView.ScaleType.FIT_XY);
imageView.setImageDrawable(drawable);
return imageView;
}
public static void o(PtQo ptQo, String str, int i) {
if (TextUtils.isEmpty(str)) {
return;
}
AlertDialog.Builder builder = new AlertDialog.Builder(ptQo, nn.o(ptQo, "system_dialog", TtmlNode.TAG_STYLE));
builder.setMessage(ptQo.getString(nn.o(ptQo, "web_download_file_confirm_title", "string"))).setCancelable(true).setPositiveButton(ptQo.getString(nn.o(ptQo, "web_download_file_confirm", "string")), ptQo.new ILIlil1Lii(i, str)).setNegativeButton(ptQo.getString(nn.o(ptQo, "web_download_file_cancel", "string")), ptQo.new iL1LiI1iii(str));
builder.create().show();
}
}