正在查看: MX Player v1.97.8 应用的 ExoDownloadPlayerActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: MX Player v1.97.8 应用的 ExoDownloadPlayerActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.mxtech.videoplayer.ad.online.features.download;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.m;
import com.m.x.player.pandora.common.fromstack.From;
import com.m.x.player.pandora.common.fromstack.FromStack;
import com.mxtech.videoplayer.ad.online.features.download.adbeforedownload.AdsBeforeDownloadActivity;
import com.mxtech.videoplayer.ad.online.model.bean.Feed;
import com.mxtech.videoplayer.ad.online.model.bean.next.OnlineResource;
import com.mxtech.videoplayer.ad.online.mxexo.ExoPlayerActivity;
import defpackage.a7d;
import defpackage.ccf;
import defpackage.d1j;
import defpackage.di8;
import defpackage.dm8;
import defpackage.jn0;
import defpackage.kr0;
import defpackage.mn5;
import defpackage.s05;
import defpackage.se8;
import defpackage.shc;
import defpackage.vi;
import defpackage.wn5;
import defpackage.xq5;
import defpackage.xv4;
import java.util.List;
public class ExoDownloadPlayerActivity extends ExoPlayerActivity implements di8, dm8 {
public static final int e1 = 0;
public int d1;
public static class a implements Runnable {
public final Handler b;
public final com.mxtech.videoplayer.ad.online.download.c c;
public final m d;
public final Feed f;
public final OnlineResource g;
public final OnlineResource h;
public final int i;
public final FromStack j;
public final boolean k;
public final boolean l;
public final Runnable m;
public boolean n = false;
public a(Handler handler, com.mxtech.videoplayer.ad.online.download.c cVar, m mVar, Feed feed, OnlineResource onlineResource, OnlineResource onlineResource2, int i, FromStack fromStack, boolean z, boolean z2, Runnable runnable) {
this.b = handler;
this.c = cVar;
this.d = mVar;
this.f = feed;
this.g = onlineResource;
this.h = onlineResource2;
this.i = i;
this.j = fromStack;
this.k = z;
this.l = z2;
this.m = runnable;
}
@Override
public final void run() {
kr0 kr0Var;
int i = 2;
int i2 = 3;
Feed feed = this.f;
Handler handler = this.b;
try {
try {
List<xv4> k = this.c.k(feed.getId());
if (k.size() == 1 && k.get(0) != null) {
feed.getId();
Feed a = s05.a(k.get(0));
this.n = true;
handler.post(new rq4(2, this, a));
} else if (!shc.b(this.d)) {
this.n = true;
handler.post(new jn0(this, i));
}
kr0Var = new kr0(this, i2);
} catch (Exception unused) {
int i3 = d1j.a;
kr0Var = new kr0(this, i2);
}
handler.post(kr0Var);
} catch (Throwable th) {
handler.post(new kr0(this, i2));
throw th;
}
}
}
public static void g8(Activity activity, Runnable runnable) {
if (jz9.L(activity)) {
return;
}
runnable.run();
if (activity instanceof se8) {
activity.finish();
}
}
public static void h8(Activity activity, OnlineResource onlineResource, Feed feed, int i, FromStack fromStack, boolean z) {
a7d.a();
Intent intent = new Intent(activity, (Class<?>) ExoDownloadPlayerActivity.class);
intent.putExtra("video", feed);
intent.putExtra("from_card", onlineResource);
intent.putExtra(FromStack.FROM_LIST, fromStack);
intent.putExtra("make_init_full_screen", z);
intent.putExtra("position", i);
if (!feed.isRewardedAdWatched()) {
hog.b().getClass();
if (!hog.d()) {
AdsBeforeDownloadActivity.a.a(activity, null, feed, false, fromStack, PendingIntent.getActivity(activity, 0, intent, Build.VERSION.SDK_INT >= 31 ? 201326592 : 134217728));
return;
}
}
dr5.b().h();
activity.startActivity(intent);
}
public static void j8(Activity activity, OnlineResource onlineResource, OnlineResource onlineResource2, OnlineResource onlineResource3, int i, FromStack fromStack, boolean z, boolean z2, Runnable runnable) {
Handler handler = new Handler(Looper.getMainLooper());
if (!(activity instanceof ExoDownloadPlayerActivity) || !(onlineResource instanceof Feed)) {
g8(activity, runnable);
return;
}
m mVar = (m) activity;
handler.post(new oi(mVar.getSupportFragmentManager(), 2));
com.mxtech.videoplayer.ad.online.download.c f = com.mxtech.videoplayer.ad.online.download.d.f(activity);
f.b.execute(new a(handler, f, mVar, (Feed) onlineResource, onlineResource2, onlineResource3, i, fromStack, z, z2, runnable));
}
@Override
public final void A7(boolean z) {
if (!this.K0.isDownloaded()) {
super.A7(z);
return;
}
if (getFeed() != null) {
vi viVar = vi.b;
}
this.F = null;
setRequestedOrientation(6);
}
@Override
public final void C6() {
this.F0 = null;
}
@Override
public final boolean D() {
wn5 wn5Var = this.L0;
return wn5Var != null && wn5Var.f.D();
}
@Override
@NonNull
public final kg5 D6() {
return new jg5();
}
@Override
public final k2b L6() {
Fragment fragment = this.w;
return fragment instanceof mn5 ? ((mn5) fragment).p : super.L6();
}
@Override
@NonNull
public final From M6() {
Feed feed = this.K0;
return From.create(feed.getId(), feed.getName(), "downloadPlayback");
}
@Override
public final void O4(Activity activity, OnlineResource onlineResource, OnlineResource onlineResource2, OnlineResource onlineResource3, int i, FromStack fromStack, boolean z, ccf ccfVar, boolean z2, nxb nxbVar) {
j8(activity, onlineResource, onlineResource2, onlineResource3, i, fromStack, z, z2, nxbVar);
}
@Override
public final boolean V1() {
wn5 wn5Var = this.L0;
return wn5Var != null && wn5Var.f.D();
}
@Override
public final void b7(boolean... zArr) {
Feed feed;
if (E7() || ((feed = this.K0) != null && feed.isYoutube())) {
xq5 xq5Var = new xq5();
Feed feed2 = this.K0;
if (feed2 == null || !feed2.isYoutube()) {
f6();
xq5Var.j9(0);
} else {
n6(2131235995);
xq5Var.j9(4);
xq5Var.g = this.K0;
}
FragmentManager supportFragmentManager = getSupportFragmentManager();
supportFragmentManager.getClass();
androidx.fragment.app.a aVar = new androidx.fragment.app.a(supportFragmentManager);
aVar.g(2131365413, xq5Var, (String) null);
aVar.j(true);
this.w = xq5Var;
return;
}
Feed feed3 = this.K0;
if (feed3 == null || !feed3.isDownloaded()) {
super.b7(zArr);
return;
}
Feed feed4 = this.K0;
FromStack x = getX();
int i = this.d1;
String str = this.J0;
mn5 mn5Var = new mn5();
Bundle bundle = new Bundle();
bundle.putSerializable("video", feed4);
bundle.putInt("position", i);
bundle.putString("streamId", str);
bundle.putParcelable(FromStack.FROM_LIST, x);
bundle.putBoolean("make_init_full_screen", false);
mn5Var.setArguments(bundle);
this.w = mn5Var;
FragmentManager supportFragmentManager2 = getSupportFragmentManager();
androidx.fragment.app.a h = km4.h(supportFragmentManager2, supportFragmentManager2);
h.g(2131365413, this.w, (String) null);
h.j(true);
this.X = true;
N1();
e8();
}
@Override
public final From d6() {
Feed feed = this.K0;
return From.create(feed.getId(), feed.getName(), "downloadPlayback");
}
@Override
public final void f7(wn5.a aVar) {
if (this.K0.isDownloaded()) {
aVar.f = true;
}
}
@Override
public final void g(int i) {
if (i != 6) {
super.g(i);
return;
}
this.F = null;
setRequestedOrientation(6);
this.I0.q(i);
}
@Override
public final boolean k0() {
return false;
}
@Override
public final void onBackPressed() {
if (isDestroyed()) {
return;
}
Fragment D = getSupportFragmentManager().D(2131365413);
if ((D instanceof mn5) && ((mn5) D).s()) {
return;
}
super.onBackPressed();
}
@Override
public final void s6(Intent intent) {
super.s6(intent);
this.d1 = getIntent().getIntExtra("position", 0);
}
@Override
public final String source() {
return "download_detail";
}
}