正在查看: MX Player v1.97.8 应用的 WebSharePageRouterActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: MX Player v1.97.8 应用的 WebSharePageRouterActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.mxtech.videoplayer.ad.online.mxexo.ads;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.KeyEvent;
import com.mxtech.videoplayer.ad.ActivityScreen;
import com.mxtech.videoplayer.ad.online.features.download.DownloadManagerTabActivity;
import com.mxtech.videoplayer.ad.online.features.download.ExoWebDownloadPlayerActivity;
import defpackage.bg;
import defpackage.cn;
import defpackage.gfh;
import defpackage.hn;
import defpackage.mdg;
import defpackage.qj6;
import defpackage.r74;
import defpackage.tya;
import defpackage.ul;
import defpackage.weh;
import defpackage.x6g;
import java.lang.ref.WeakReference;
import java.util.HashMap;
import java.util.Iterator;
import kotlin.Metadata;
import kotlin.text.c;
import org.jetbrains.annotations.NotNull;
import org.json.JSONObject;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lcom/mxtech/videoplayer/ad/online/mxexo/ads/WebSharePageRouterActivity;", "Lpg0;", "<init>", "()V", "PlayerAd-vc2001002668-vn1.97.8.1.0-0_google_bundleRelease"}, k = 1, mv = {2, 0, 0}, xi = 48)
public final class WebSharePageRouterActivity extends pg0 {
public static final int d = 0;
public boolean b;
@NotNull
public final hn c = new hn(this, 14);
public final Class<?> R5() {
Intent intent = getIntent();
String action = intent != null ? intent.getAction() : null;
if (action != null) {
if (action.contentEquals(getPackageName() + ".playback_online")) {
return ExoWebDownloadPlayerActivity.class;
}
}
if (action != null) {
if (action.equalsIgnoreCase(getPackageName() + ".download_open")) {
return DownloadManagerTabActivity.class;
}
}
if (action != null) {
if (action.equalsIgnoreCase(getPackageName() + ".download_stream")) {
return DownloadManagerTabActivity.class;
}
}
if (action == null) {
return ActivityScreen.class;
}
StringBuilder sb = new StringBuilder();
sb.append(getPackageName());
sb.append(".download");
return action.equalsIgnoreCase(sb.toString()) ? DownloadManagerTabActivity.class : ActivityScreen.class;
}
public final void finish() {
super/*android.app.Activity*/.finish();
x6g.b = null;
x6g.c = null;
Handler handler = x6g.j;
handler.removeMessages(100);
handler.removeMessages(101);
overridePendingTransition(0, 0);
}
public final void onCreate(Bundle bundle) {
super/*androidx.fragment.app.m*/.onCreate(bundle);
Intent intent = getIntent();
if (intent == null) {
return;
}
Uri data = intent.getData();
mdg mdgVar = new mdg("deepLinkOpened", weh.c);
String stringExtra = intent.getStringExtra("tr_parameter");
HashMap hashMap = new HashMap();
if (!TextUtils.isEmpty(stringExtra)) {
try {
JSONObject jSONObject = new JSONObject(stringExtra);
Iterator<String> keys = jSONObject.keys();
while (keys.hasNext()) {
String next = keys.next();
d0d.e(next, jSONObject.opt(next), hashMap);
}
} catch (Exception unused) {
}
}
HashMap hashMap2 = new HashMap(hashMap);
String action = intent.getAction();
if (!TextUtils.isEmpty(action)) {
if (action.endsWith(".download") || action.endsWith(".download_open") || action.endsWith(".download_stream")) {
action = "download";
} else if (action.endsWith(".playback_local")) {
action = "localPlayer";
} else if (action.endsWith(".playback_online")) {
action = "onlinePlayer";
}
}
d0d.e("action_type", action, hashMap2);
d0d.e("intent_data", data == null ? "No intent data" : data.toString(), hashMap2);
mdgVar.b.putAll(hashMap2);
gfh.d(mdgVar);
}
public final void onDestroy() {
super.onDestroy();
x6g.b = null;
x6g.c = null;
Handler handler = x6g.j;
handler.removeMessages(100);
handler.removeMessages(101);
qj6.q = true;
}
public final boolean onKeyDown(int i, KeyEvent keyEvent) {
if (i == 4) {
return true;
}
return super.onKeyDown(i, keyEvent);
}
public final void onStart() {
String action;
super.onStart();
bg.j(this);
if (this.b) {
return;
}
WeakReference<pg0> weakReference = x6g.b;
x6g.b = new WeakReference<>(this);
x6g.c = this.c;
Intent intent = getIntent();
if (intent != null && (action = intent.getAction()) != null) {
c.o(action, getPackageName() + ".playback", false);
}
x6g.d = SystemClock.elapsedRealtime();
tya tyaVar = tya.m;
x6g.g = xrf.a().getInt("lastInterstitialDisplayVideoInterval:webSharePageOpenAd", 0);
SharedPreferences.Editor edit = xrf.a().edit();
int i = x6g.g + 1;
x6g.g = i;
edit.putInt("lastInterstitialDisplayVideoInterval:webSharePageOpenAd", i).apply();
x6g.j.sendEmptyMessageDelayed(101, 3000L);
ul.g.getClass();
ul.d();
((cn) r74.g()).h0(x6g.k);
this.b = true;
}
public final void onStop() {
super.onStop();
bg.k(this);
}
}