正在查看: MX Player v1.97.8 应用的 MXChannelChatActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: MX Player v1.97.8 应用的 MXChannelChatActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.mxtech.videoplayer.ad.online.mxchannel.activity;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TextView;
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.microsoft.identity.common.java.providers.microsoft.MicrosoftAuthorizationResponse;
import defpackage.a7c;
import defpackage.b0b;
import defpackage.dla;
import defpackage.g6c;
import defpackage.gfh;
import defpackage.hb1;
import defpackage.i0g;
import defpackage.iza;
import defpackage.jza;
import defpackage.lg0;
import defpackage.mdg;
import defpackage.x5c;
import defpackage.xxc;
import defpackage.z7c;
import java.lang.reflect.Method;
import kotlin.Metadata;
import kotlin.jvm.functions.Function0;
import org.jetbrains.annotations.NotNull;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\u0018\u00002\u00020\u0001:\u0001\u0004B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0005"}, d2 = {"Lcom/mxtech/videoplayer/ad/online/mxchannel/activity/MXChannelChatActivity;", "Lxxc;", "<init>", "()V", "a", "PlayerAd-vc2001002668-vn1.97.8.1.0-0_google_bundleRelease"}, k = 1, mv = {2, 0, 0}, xi = 48)
public final class MXChannelChatActivity extends xxc {
public static final int z = 0;
public TextView u;
public TextView v;
@NotNull
public final dii w;
@NotNull
public final dii x;
public g6c y;
public static final class a {
public static void a(@NotNull Context context, @NotNull g6c g6cVar, @NotNull FromStack fromStack, String str) {
Intent intent = new Intent(context, (Class<?>) MXChannelChatActivity.class);
intent.putExtra(FromStack.FROM_LIST, fromStack);
intent.putExtra("key_source", str);
intent.putExtra("key_resource", g6cVar);
context.startActivity(intent);
}
}
public static final class b extends a3a implements Function0<fii> {
public b() {
super(0);
}
public final Object invoke() {
return MXChannelChatActivity.this.getDefaultViewModelProviderFactory();
}
}
public static final class c extends a3a implements Function0<kii> {
public c() {
super(0);
}
public final Object invoke() {
return MXChannelChatActivity.this.getViewModelStore();
}
}
public static final class d extends a3a implements Function0<gw3> {
public d() {
super(0);
}
public final Object invoke() {
return MXChannelChatActivity.this.getDefaultViewModelCreationExtras();
}
}
public static final class e extends a3a implements Function0<fii> {
public e() {
super(0);
}
public final Object invoke() {
return MXChannelChatActivity.this.getDefaultViewModelProviderFactory();
}
}
public static final class f extends a3a implements Function0<kii> {
public f() {
super(0);
}
public final Object invoke() {
return MXChannelChatActivity.this.getViewModelStore();
}
}
public static final class g extends a3a implements Function0<gw3> {
public g() {
super(0);
}
public final Object invoke() {
return MXChannelChatActivity.this.getDefaultViewModelCreationExtras();
}
}
public MXChannelChatActivity() {
b bVar = new b();
zle zleVar = wle.a;
this.w = new dii(zleVar.b(a7c.class), new c(), bVar, new d());
this.x = new dii(zleVar.b(z7c.class), new f(), new e(), new g());
}
@Override
public final From d6() {
return From.create("mxChannelChat", "mxChannelChat", "mxChannelChat");
}
@Override
public final int e6() {
return i0g.b().h("online_base_activity");
}
@Override
public final int j6() {
return 2131558497;
}
@Override
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
this.y = (g6c) getIntent().getSerializableExtra("key_resource");
String stringExtra = getIntent().getStringExtra("key_source");
if (stringExtra == null) {
stringExtra = "";
}
this.u = (TextView) findViewById(2131362621);
this.v = (TextView) findViewById(2131362624);
g6c g6cVar = this.y;
if (g6cVar != null) {
TextView textView = this.u;
if (textView == null) {
textView = null;
}
textView.setText(g6cVar.c);
TextView textView2 = this.v;
TextView textView3 = textView2 != null ? textView2 : null;
Resources resources = getResources();
int i = g6cVar.f;
textView3.setText(resources.getQuantityString(2131755075, i, Integer.valueOf(i)));
FragmentManager supportFragmentManager = getSupportFragmentManager();
supportFragmentManager.getClass();
androidx.fragment.app.a aVar = new androidx.fragment.app.a(supportFragmentManager);
FromStack fromStack = fromStack();
iza izaVar = new iza();
Bundle bundle2 = new Bundle();
bundle2.putSerializable("item", g6cVar);
bundle2.putParcelable(FromStack.FROM_LIST, fromStack);
izaVar.setArguments(bundle2);
aVar.g(2131362134, izaVar, "tag_profile");
aVar.j(true);
String id = g6cVar.getId();
mdg u = d0d.u("chChatShown");
d0d.c(u, "channelID", id);
d0d.c(u, "source", stringExtra);
gfh.d(u);
} else {
finish();
}
pri.c();
}
public final boolean onCreateOptionsMenu(Menu menu) {
MenuItem findItem;
MenuItem findItem2;
MenuItem findItem3;
MenuItem findItem4;
getMenuInflater().inflate(2131623946, menu);
g6c g6cVar = this.y;
if (g6cVar != null) {
if (menu != null && (findItem4 = menu.findItem(2131361898)) != null) {
findItem4.setVisible(!g6cVar.W0());
}
if (menu != null && (findItem3 = menu.findItem(2131361865)) != null) {
findItem3.setVisible(g6cVar.W0());
}
if (menu != null && (findItem2 = menu.findItem(2131361903)) != null) {
findItem2.setVisible(!g6cVar.U0());
}
if (menu != null && (findItem = menu.findItem(2131361881)) != null) {
findItem.setVisible(g6cVar.i == 2);
}
}
return true;
}
public final boolean onMenuOpened(int i, @NotNull Menu menu) {
if (menu.getClass().getSimpleName().equalsIgnoreCase("MenuBuilder")) {
try {
Method declaredMethod = menu.getClass().getDeclaredMethod("setOptionalIconsVisible", Boolean.TYPE);
declaredMethod.setAccessible(true);
declaredMethod.invoke(menu, Boolean.TRUE);
} catch (Exception unused) {
}
}
return super.onMenuOpened(i, menu);
}
@Override
public final boolean onOptionsItemSelected(@NotNull MenuItem menuItem) {
switch (menuItem.getItemId()) {
case 2131361865:
g6c g6cVar = this.y;
if (g6cVar != null) {
int parseInt = Integer.parseInt(g6cVar.getId());
long j = g6cVar.d;
x5c x5cVar = new x5c();
Bundle bundle = new Bundle();
bundle.putInt("key_channel_id", parseInt);
bundle.putLong("key_channel_ttl", j);
x5cVar.setArguments(bundle);
x5cVar.show(getSupportFragmentManager(), "autoDelete");
x5cVar.getParentFragmentManager().f0("key_channel_request", x5cVar, new dla(g6cVar, this));
break;
}
break;
case 2131361881:
if (this.y != null) {
String string = getString(2131888972);
String string2 = getString(2131888971, this.y.c);
String string3 = getString(2131888979);
hb1 hb1Var = new hb1(this, 4);
jza jzaVar = new jza();
Bundle d2 = lg0.d("title", string, MicrosoftAuthorizationResponse.MESSAGE, string2);
d2.putString("positiveButtonText", string3);
d2.putInt("positiveButtonTextColor", 2131102631);
d2.putBoolean("dismiss", false);
jzaVar.setArguments(d2);
jzaVar.c = hb1Var;
jzaVar.showAllowStateLost(getSupportFragmentManager(), "LeaveChannelDialog");
break;
}
break;
case 2131361894:
g6c g6cVar2 = this.y;
if (g6cVar2 != null) {
gfh.d(d0d.u("chProfileClicked"));
FromStack fromStack = fromStack();
Intent intent = new Intent((Context) this, (Class<?>) MXChannelProfileActivity.class);
intent.putExtra(FromStack.FROM_LIST, fromStack);
intent.putExtra("key_source", "tag_profile");
intent.putExtra("key_resource", g6cVar2);
startActivity(intent);
break;
}
break;
case 2131361898:
g6c g6cVar3 = this.y;
if (g6cVar3 != null) {
mdg b2 = h21.b("chReportClicked", "channelID", g6cVar3.getId(), "itemID", "");
d0d.c(b2, "source", "more");
gfh.d(b2);
b0b b0bVar = new b0b();
Bundle bundle2 = new Bundle();
bundle2.putSerializable("item", g6cVar3);
b0bVar.setArguments(bundle2);
b0bVar.show(getSupportFragmentManager(), "reportDialog");
break;
}
break;
case 2131361903:
g6c g6cVar4 = this.y;
if (g6cVar4 != null) {
String id = g6cVar4.getId();
mdg u = d0d.u("chShareClicked");
d0d.c(u, "channelID", id);
d0d.c(u, "source", "more");
gfh.d(u);
a7.F(this, g6cVar4.g + ' ' + g6cVar4.h, getResources().getString(2131889014));
break;
}
break;
}
return super.onOptionsItemSelected(menuItem);
}
}