正在查看: MX Player v1.97.8 应用的 AdsBeforeDownloadActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: MX Player v1.97.8 应用的 AdsBeforeDownloadActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.mxtech.videoplayer.ad.online.features.download.adbeforedownload;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;
import androidx.appcompat.app.d;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import com.m.x.player.pandora.common.fromstack.From;
import com.m.x.player.pandora.common.fromstack.FromStack;
import com.mxtech.videoplayer.ad.online.model.bean.ConfigBean;
import com.mxtech.videoplayer.ad.online.model.bean.Feed;
import com.mxtech.videoplayer.ad.online.model.bean.next.Download;
import com.mxtech.videoplayer.ad.online.model.bean.next.ResourceType;
import com.mxtech.videoplayer.ad.online.model.bean.next.tvshow.TvSeason;
import com.mxtech.videoplayer.ad.online.model.bean.next.tvshow.TvShow;
import defpackage.a7d;
import defpackage.d0c;
import defpackage.d1j;
import defpackage.dq7;
import defpackage.dw4;
import defpackage.gd8;
import defpackage.jd8;
import defpackage.js;
import defpackage.mug;
import defpackage.r1;
import defpackage.rbc;
import defpackage.rr;
import defpackage.s05;
import defpackage.shc;
import defpackage.uy4;
import defpackage.vi;
import defpackage.vr;
import defpackage.wr;
import defpackage.xv4;
import defpackage.xxc;
import defpackage.y0;
import defpackage.yi;
import java.io.Serializable;
import java.util.LinkedList;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.jvm.JvmStatic;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u00002\u00020\u00012\u00020\u0002:\u0001\u0005B\u0007¢\u0006\u0004\b\u0003\u0010\u0004¨\u0006\u0006"}, d2 = {"Lcom/mxtech/videoplayer/ad/online/features/download/adbeforedownload/AdsBeforeDownloadActivity;", "Lxxc;", "Lhod$b;", "<init>", "()V", "a", "PlayerAd-vc2001002668-vn1.97.8.1.0-0_google_bundleRelease"}, k = 1, mv = {2, 0, 0}, xi = 48)
public final class AdsBeforeDownloadActivity extends xxc implements b {
@NotNull
public static final a z = new a();
public Pair<? extends Feed, ? extends Download> u;
public boolean v;
public PendingIntent w;
public FromStack x;
@NotNull
public qb8 y = qb8.a;
public static final class a {
@JvmStatic
public static void a(Context context, Download download, Feed feed, boolean z, FromStack fromStack, PendingIntent pendingIntent) {
Resources resources;
if (!shc.b(context)) {
Toast.makeText(context, (context == null || (resources = context.getResources()) == null) ? null : resources.getString(2131889289), 0).show();
return;
}
a7d.a();
d0c.i().q();
if (context != null) {
Bundle bundle = new Bundle();
if (pendingIntent != null) {
bundle.putParcelable("action", pendingIntent);
}
if (fromStack != null) {
bundle.putParcelable(FromStack.FROM_LIST, fromStack);
}
bundle.putSerializable("download_data", new Pair(feed, download));
bundle.putBoolean("shouldRunAdsOnDownloadedContent", z);
Intent intent = new Intent(context, (Class<?>) AdsBeforeDownloadActivity.class);
intent.setFlags(131072);
intent.putExtras(bundle);
context.startActivity(intent);
}
if (context instanceof Activity) {
((Activity) context).overridePendingTransition(0, 0);
}
}
public final void b(Feed feed, Context context, FromStack fromStack) {
if (feed.getDownloadMetadata() == null || feed.getDownloadMetadata().isEmpty()) {
a(context, null, feed, false, fromStack, null);
} else {
a(context, feed.getDownloadMetadata().get(0), feed, false, fromStack, null);
}
}
}
@JvmStatic
public static final boolean s6(@NotNull xv4 xv4Var, Context context, FromStack fromStack) {
Feed feed;
a aVar = z;
if (context == null) {
return false;
}
hog.b().getClass();
if (hog.d()) {
return false;
}
if (xv4Var instanceof mug) {
mug mugVar = (mug) xv4Var;
if (mugVar == null || !mugVar.W0()) {
Feed e = s05.e(mugVar);
e.setSeasonNum(mugVar.e0);
e.setEpisodeNum(mugVar.d0);
TvShow tvShow = new TvShow();
tvShow.setId(mugVar.g0);
tvShow.setType(ResourceType.RealType.TV_SHOW);
tvShow.setName(null);
TvSeason tvSeason = new TvSeason();
tvSeason.setId(mugVar.f0);
tvSeason.setType(ResourceType.RealType.TV_SEASON);
tvSeason.setName(null);
e.setSeason(tvSeason);
e.setTvShow(tvShow);
e.setDownloaded(true);
e.setRewardedAdWatched(mugVar.isRewardedAdWatched());
feed = e;
} else {
feed = s05.d(mugVar, null, null);
}
aVar.b(feed, context, fromStack);
} else {
if (!(xv4Var instanceof dw4)) {
return false;
}
aVar.b(s05.e((dw4) xv4Var), context, fromStack);
}
return true;
}
public final tj8 A1() {
return this.y;
}
@Override
public final From d6() {
return From.create("adsBeforeDownload", "adsBeforeDownload", "adsBeforeDownload");
}
@Override
public final int e6() {
return 2131951765;
}
public final void finish() {
super/*android.app.Activity*/.finish();
overridePendingTransition(0, 0);
}
@Override
public final FromStack getX() {
return this.x;
}
@Override
public final int j6() {
return 2131558563;
}
public final void onBackPressed() {
int i = 0;
int i2 = 1;
Fragment D = getSupportFragmentManager().D(2131363585);
if (D instanceof wr) {
wr wrVar = (wr) D;
js jsVar = wrVar.c;
if (jsVar == null) {
jsVar = null;
}
if (!jsVar.b) {
int i3 = d1j.a;
d dVar = wrVar.f;
if (dVar == null || !dVar.isShowing()) {
js jsVar2 = wrVar.c;
if (jsVar2 == null) {
jsVar2 = null;
}
jsVar2.f.setValue(new uy4.b("manual"));
}
if (!wrVar.isAdded() || wrVar.getContext() == null) {
return;
}
d dVar2 = wrVar.f;
if (dVar2 == null || !dVar2.isShowing()) {
d.a aVar = new d.a(wrVar.requireContext());
View inflate = wrVar.getLayoutInflater().inflate(2131559491, (ViewGroup) null);
int dimensionPixelSize = wrVar.getResources().getDimensionPixelSize(2131165811);
int dimensionPixelSize2 = wrVar.getResources().getDimensionPixelSize(2131166188);
View findViewById = inflate.findViewById(2131365451);
findViewById.setOnClickListener(new r1(wrVar, i2));
findViewById.setPadding(dimensionPixelSize, dimensionPixelSize2, dimensionPixelSize, dimensionPixelSize2);
View findViewById2 = inflate.findViewById(2131365123);
findViewById2.setOnClickListener(new rr(wrVar, i));
findViewById2.setPadding(dimensionPixelSize, dimensionPixelSize2, dimensionPixelSize, dimensionPixelSize2);
aVar.m(inflate);
d a2 = aVar.a();
a2.setCanceledOnTouchOutside(false);
a2.getOnBackPressedDispatcher().a(a2, new vr(a2, wrVar));
a2.setCancelable(false);
a2.show();
wrVar.f = a2;
return;
}
return;
}
}
super/*ub3*/.onBackPressed();
}
@Override
public final void onCreate(Bundle bundle) {
jd8 l;
super.onCreate(bundle);
this.x = pzh.f(getIntent());
Pair<? extends Feed, ? extends Download> serializableExtra = getIntent().getSerializableExtra("download_data");
this.u = serializableExtra instanceof Pair ? serializableExtra : null;
boolean z2 = false;
this.v = getIntent().getBooleanExtra("shouldRunAdsOnDownloadedContent", false);
this.w = (PendingIntent) getIntent().getParcelableExtra("action");
Pair<? extends Feed, ? extends Download> pair = this.u;
if (pair != null) {
p6(pair, this.v);
}
ConfigBean configBean = dq7.a;
gd8 f = ((y0) vi.c()).f("isTechMetricLoggingEnabled");
if (f != null && (l = f.l()) != null) {
z2 = l.f(false);
}
rbc rbcVar = !z2 ? null : rbc.j;
if (rbcVar != null) {
LinkedList linkedList = new LinkedList();
ConfigBean a2 = dq7.a();
linkedList.add(new Pair("okhttp_datasource", String.valueOf(a2 != null ? a2.useOkHttpForPlayer() : true)));
rbcVar.b.c = linkedList;
}
yi yiVar = rbcVar != null ? new yi(rbcVar) : null;
if (yiVar != null) {
this.y = yiVar;
yiVar.i(null);
}
this.y.f();
}
@Override
public final void onDestroy() {
super.onDestroy();
this.y.d();
this.y.deactivate();
this.y = qb8.a;
}
@Override
public final void onNewIntent(Intent intent) {
Feed feed;
super.onNewIntent(intent);
Serializable serializableExtra = intent != null ? intent.getSerializableExtra("download_data") : null;
Pair pair = serializableExtra instanceof Pair ? (Pair) serializableExtra : null;
if (pair == null) {
return;
}
Pair<? extends Feed, ? extends Download> pair2 = this.u;
if (Intrinsics.b((pair2 == null || (feed = (Feed) pair2.b) == null) ? null : feed.getId(), ((Feed) pair.b).getId())) {
return;
}
Serializable serializableExtra2 = intent.getSerializableExtra("download_data");
this.u = serializableExtra2 instanceof Pair ? (Pair) serializableExtra2 : null;
this.v = intent.getBooleanExtra("shouldRunAdsOnDownloadedContent", false);
this.w = (PendingIntent) intent.getParcelableExtra("action");
setIntent(intent);
Pair<? extends Feed, ? extends Download> pair3 = this.u;
if (pair3 != null) {
p6(pair3, this.v);
}
}
public final void p6(Pair<? extends Feed, ? extends Download> pair, boolean z2) {
FromStack fromStack = fromStack();
wr wrVar = new wr();
Bundle bundle = new Bundle();
bundle.putSerializable("download_data", pair);
bundle.putParcelable(FromStack.FROM_LIST, fromStack);
bundle.putBoolean("shouldRunAdsOnDownloadedContent", z2);
wrVar.setArguments(bundle);
FragmentManager supportFragmentManager = getSupportFragmentManager();
supportFragmentManager.getClass();
androidx.fragment.app.a aVar = new androidx.fragment.app.a(supportFragmentManager);
aVar.g(2131363585, wrVar, wr.class.getName());
aVar.j(false);
}
}