正在查看: MX Player v1.97.8 应用的 OnlineFlowEntranceActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: MX Player v1.97.8 应用的 OnlineFlowEntranceActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.mxtech.videoplayer.ad.online.features.more;
import android.R;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import androidx.appcompat.app.ActionBar;
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.m.x.player.pandora.common.fromstack.FromStackProvider;
import com.mxtech.videoplayer.ad.online.cwnudge.ContinueWatchingNudgeView;
import com.mxtech.videoplayer.ad.online.download.DownloadFlowEntranceActivity;
import com.mxtech.videoplayer.ad.online.features.informationcapture.view.UserInfoCaptureView;
import com.mxtech.videoplayer.ad.online.features.search.SearchActivity;
import com.mxtech.videoplayer.ad.online.model.bean.Feed;
import com.mxtech.videoplayer.ad.online.model.bean.next.MoreStyleResourceFlow;
import com.mxtech.videoplayer.ad.online.model.bean.next.OnlineResource;
import com.mxtech.videoplayer.ad.online.model.bean.next.ResourceFlow;
import com.mxtech.videoplayer.ad.online.model.bean.next.ResourceStyle;
import com.mxtech.videoplayer.ad.online.model.bean.next.ResourceType;
import com.mxtech.videoplayer.ad.online.mxexo.ExoPlayerActivity;
import defpackage.ae6;
import defpackage.ccf;
import defpackage.dq7;
import defpackage.esg;
import defpackage.gl0;
import defpackage.hef;
import defpackage.i0g;
import defpackage.j1b;
import defpackage.j61;
import defpackage.l4;
import defpackage.ln3;
import defpackage.qbg;
import defpackage.tj5;
import defpackage.umc;
import defpackage.v26;
import defpackage.vg3;
import java.util.HashMap;
import org.greenrobot.eventbus.ThreadMode;
public class OnlineFlowEntranceActivity extends j61 implements FromStackProvider, v26, vg3 {
public ccf A;
public boolean B = false;
public UserInfoCaptureView C;
public l4 D;
public ResourceFlow x;
public boolean y;
public OnlineResource z;
public static void A6(Context context, FromStack fromStack, OnlineResource onlineResource, ResourceFlow resourceFlow, boolean z) {
if (dq7.A()) {
C6(context, resourceFlow, onlineResource, z, true, fromStack, false, null);
}
}
public static void C6(Context context, ResourceFlow resourceFlow, OnlineResource onlineResource, boolean z, boolean z2, FromStack fromStack, boolean z3, ccf ccfVar) {
if (dq7.A() && dq7.A()) {
D6(context, resourceFlow, onlineResource, z, z2, fromStack, z3, ccfVar, null, OnlineFlowEntranceActivity.class, false);
}
}
public static void D6(Context context, ResourceFlow resourceFlow, OnlineResource onlineResource, boolean z, boolean z2, FromStack fromStack, boolean z3, ccf ccfVar, OnlineResource onlineResource2, Class cls, boolean z4) {
Intent intent = new Intent(context, (Class<?>) cls);
intent.putExtra("resource", resourceFlow);
if (onlineResource != null) {
intent.putExtra("fromTab", onlineResource);
}
if (onlineResource2 != null) {
intent.putExtra("container", onlineResource2);
}
intent.putExtra("loadMoreDisabled", z);
intent.putExtra("swipeToRefresh", z2);
intent.putExtra(FromStack.FROM_LIST, fromStack);
intent.putExtra("isFromSearch", z3);
intent.putExtra("key_search_params", ccfVar);
intent.putExtra("isfromgaana", z4);
context.startActivity(intent);
}
@Override
public final void K3(Feed feed, FromStack fromStack, boolean z) {
OnlineResource onlineResource = this.z;
if (onlineResource != null) {
ExoPlayerActivity.P7(this, onlineResource, feed, fromStack);
} else {
ExoPlayerActivity.L7(this, feed, fromStack);
}
}
@Override
public final From d6() {
return null;
}
public void init() {
ResourceFlow resourceFlow = (ResourceFlow) getIntent().getSerializableExtra("resource");
this.x = resourceFlow;
if (resourceFlow == null) {
finish();
return;
}
if (resourceFlow instanceof MoreStyleResourceFlow) {
resourceFlow.setStyle(((MoreStyleResourceFlow) resourceFlow).getMoreStyle());
}
OnlineResource onlineResource = (OnlineResource) getIntent().getSerializableExtra("fromTab");
boolean booleanExtra = getIntent().getBooleanExtra("loadMoreDisabled", false);
boolean booleanExtra2 = getIntent().getBooleanExtra("swipeToRefresh", false);
this.y = getIntent().getBooleanExtra("isFromSearch", false);
this.z = (OnlineResource) getIntent().getSerializableExtra("container");
this.s = getX().newAndPush(pzh.r(this.x));
this.A = (ccf) getIntent().getSerializableExtra("key_search_params");
this.B = getIntent().getBooleanExtra("isfromgaana", false);
w6();
ResourceType type = this.x.getType();
if (this.y) {
ccf ccfVar = this.A;
if (ccfVar == null || ccfVar.f == null) {
u6();
}
ResourceFlow resourceFlow2 = this.x;
HashMap hashMap = g34.a;
l6(resourceFlow2.getTitle());
} else if (type == ResourceType.CardType.CARD_CLIPS) {
l6(this.x.getName());
} else {
l6(this.x.getTitle());
}
z6(getSupportFragmentManager(), type, onlineResource, booleanExtra, booleanExtra2);
}
@Override
public int j6() {
return 2131558518;
}
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
tj5.e(this);
esg.a(this);
init();
View findViewById = findViewById(2131362295);
if (findViewById != null) {
ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) findViewById.getLayoutParams();
marginLayoutParams.topMargin = qbg.a(this) + ((j1b) getResources()).a.getDimensionPixelSize(2131165339);
findViewById.setLayoutParams(marginLayoutParams);
}
this.C = (UserInfoCaptureView) findViewById(2131367739);
}
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(2131623964, menu);
gl0.c(this, menu);
w6();
return super/*android.app.Activity*/.onCreateOptionsMenu(menu);
}
@Override
public void onDestroy() {
super.onDestroy();
UserInfoCaptureView userInfoCaptureView = this.C;
if (userInfoCaptureView != null && tj5.b(userInfoCaptureView)) {
tj5.h(userInfoCaptureView);
}
tj5.h(this);
}
@vgg(threadMode = ThreadMode.MAIN)
public void onEvent(ln3 ln3Var) {
l4 l4Var;
if (tj5.a.contains(this) && s6() && (l4Var = this.D) != null) {
l4Var.N9(Boolean.valueOf(ln3Var.b));
}
}
@Override
public boolean onOptionsItemSelected(MenuItem menuItem) {
if (menuItem.getItemId() != 2131361877) {
return super.onOptionsItemSelected(menuItem);
}
SearchActivity.H6(this, getX(), "list");
return true;
}
@Override
public final void onStart() {
ContinueWatchingNudgeView continueWatchingNudgeView;
l4 l4Var;
super.onStart();
if (!s6() || (continueWatchingNudgeView = this.w) == null || !continueWatchingNudgeView.u() || (l4Var = this.D) == null) {
return;
}
l4Var.N9(Boolean.TRUE);
}
@Override
public boolean s6() {
return !(this instanceof DownloadFlowEntranceActivity);
}
@Override
public String t6() {
return "viewmore_page";
}
public final void u6() {
if (this.q == null) {
return;
}
ActionBar actionBar = this.p;
if (actionBar != null) {
actionBar.z("");
if (i0g.b().k()) {
this.p.u(2131234207);
this.q.setBackgroundColor(((j1b) getResources()).a.getColor(2131103573));
this.q.setTitleTextColor(((j1b) getResources()).a.getColor(2131101542));
} else {
this.p.u(2131231783);
this.q.setBackgroundColor(((j1b) getResources()).a.getColor(R.color.white));
this.q.setTitleTextColor(((j1b) getResources()).a.getColor(2131101543));
}
this.p.q(true);
}
this.q.setContentInsetStartWithNavigation(0);
}
public final void w6() {
MenuItem findItem;
if (c6() == null || c6().findItem(2131361877) == null || (findItem = c6().findItem(2131361877)) == null) {
return;
}
findItem.setVisible(this.B);
}
public ae6 x6(OnlineResource onlineResource, boolean z, boolean z2) {
return ae6.P9(this.x, onlineResource, z, z2, true, this.y);
}
public void z6(FragmentManager fragmentManager, ResourceType resourceType, OnlineResource onlineResource, boolean z, boolean z2) {
if (vue.W(resourceType) || vue.A(resourceType) || resourceType == ResourceType.CardType.CARD_MX_ORIGINAL || resourceType == ResourceType.RealType.BROWSE_ITEM || resourceType == ResourceType.CardType.CARD_ORIGINAL_SHOW || resourceType == ResourceType.CardType.CARD_TRAILER || resourceType == ResourceType.CardType.CARD_SONY_LIVE || vue.n0(resourceType) || vue.m0(resourceType)) {
umc Q9 = umc.Q9(this.x, onlineResource, z, z2 && !this.y, this.y, ccf.a(getIntent()));
this.D = Q9;
fragmentManager.getClass();
androidx.fragment.app.a aVar = new androidx.fragment.app.a(fragmentManager);
aVar.g(2131363585, Q9, (String) null);
aVar.j(true);
return;
}
if (resourceType == ResourceType.CardType.CARD_LIVETV) {
this.x.setStyle(ResourceStyle.COLUMNx4_CIRCLE);
ae6 P9 = ae6.P9(this.x, onlineResource, false, false, true, this.y);
this.D = P9;
fragmentManager.getClass();
androidx.fragment.app.a aVar2 = new androidx.fragment.app.a(fragmentManager);
aVar2.g(2131363585, P9, (String) null);
aVar2.j(true);
return;
}
if (resourceType == ResourceType.WrapperType.WRAPPER_MINI_LIST_PROFILE) {
ae6 P92 = ae6.P9(this.x, onlineResource, z, z2, true, this.y);
this.D = P92;
fragmentManager.getClass();
androidx.fragment.app.a aVar3 = new androidx.fragment.app.a(fragmentManager);
aVar3.g(2131363585, P92, (String) null);
aVar3.j(true);
return;
}
if (resourceType == ResourceType.ContainerType.CONTAINER_SEASON_INFO) {
ae6 x6 = x6(onlineResource, z, z2);
this.D = x6;
fragmentManager.getClass();
androidx.fragment.app.a aVar4 = new androidx.fragment.app.a(fragmentManager);
aVar4.g(2131363585, x6, (String) null);
aVar4.j(true);
return;
}
if (vue.i0(resourceType)) {
ae6 P93 = ae6.P9(this.x, onlineResource, z, z2, false, this.y);
this.D = P93;
fragmentManager.getClass();
androidx.fragment.app.a aVar5 = new androidx.fragment.app.a(fragmentManager);
aVar5.g(2131363585, P93, (String) null);
aVar5.j(true);
return;
}
if (resourceType == ResourceType.CardType.CARD_CLIPS) {
this.x.setStyle(ResourceStyle.CLIPS_CARD);
umc Q92 = umc.Q9(this.x, onlineResource, z, z2 && !this.y, this.y, ccf.a(getIntent()));
this.D = Q92;
fragmentManager.getClass();
androidx.fragment.app.a aVar6 = new androidx.fragment.app.a(fragmentManager);
aVar6.g(2131363585, Q92, (String) null);
aVar6.j(true);
return;
}
if (resourceType != ResourceType.ContainerType.CONTAINER_DEEP_LINK_RESPONSE) {
if (vue.X(resourceType)) {
umc Q93 = umc.Q9(this.x, onlineResource, z, z2 && !this.y, this.y, ccf.a(getIntent()));
this.D = Q93;
fragmentManager.getClass();
androidx.fragment.app.a aVar7 = new androidx.fragment.app.a(fragmentManager);
aVar7.g(2131363585, Q93, (String) null);
aVar7.j(true);
return;
}
return;
}
ResourceFlow resourceFlow = this.x;
boolean z3 = z2 && !this.y;
boolean z4 = this.y;
ccf a = ccf.a(getIntent());
hef hefVar = new hef();
resourceFlow.setResourceList(null);
hefVar.setArguments(umc.O9(resourceFlow, onlineResource, z, z3, z4, a));
this.D = hefVar;
fragmentManager.getClass();
androidx.fragment.app.a aVar8 = new androidx.fragment.app.a(fragmentManager);
aVar8.g(2131363585, hefVar, (String) null);
aVar8.j(true);
}
@Override
public final void W2() {
}
}