正在查看: MX Player v1.97.8 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: MX Player v1.97.8 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.mxtech.videoplayer.ad.online.playback.poll.view;
import android.content.res.Resources;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CompoundButton;
import android.widget.ProgressBar;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.appcompat.widget.AppCompatRadioButton;
import androidx.recyclerview.widget.RecyclerView;
import com.mxtech.videoplayer.ad.online.playback.poll.view.b;
import com.mxtech.videoplayer.ad.online.superdownloader.bean.MediaType;
import defpackage.ck8;
import defpackage.qsd;
import defpackage.rsd;
import defpackage.wf9;
import defpackage.yj8;
import defpackage.zj8;
import java.util.Locale;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
class b extends wf9<rsd, a> {
public final zj8 b;
public class a extends RecyclerView.z {
public final TextView b;
public final TextView c;
public final ProgressBar d;
public final AppCompatRadioButton f;
public a(@NonNull View view) {
super(view);
this.b = (TextView) view.findViewById(2131367123);
this.c = (TextView) view.findViewById(2131367175);
this.f = view.findViewById(2131362584);
this.d = (ProgressBar) view.findViewById(2131365517);
}
}
public b(zj8 zj8Var) {
this.b = zj8Var;
}
@Override
public void onBindViewHolder(@NonNull final a aVar, @NonNull final rsd rsdVar) {
int i;
int i2;
aVar.getClass();
String format = String.format(Locale.US, "%1$d%%", Integer.valueOf(rsdVar.f));
TextView textView = aVar.c;
textView.setText(format);
Resources resources = textView.getResources();
if (rsdVar.g) {
i = 2131103765;
} else {
int ordinal = rsdVar.i.ordinal();
i = ordinal != 0 ? ordinal != 1 ? 2131103766 : 2131103767 : 2131103764;
}
textView.setTextColor(resources.getColor(i));
int i3 = rsdVar.f;
ProgressBar progressBar = aVar.d;
progressBar.setProgress(i3, true);
aVar.b.setText(rsdVar.d);
AppCompatRadioButton appCompatRadioButton = aVar.f;
appCompatRadioButton.setOnCheckedChangeListener(null);
boolean z = rsdVar.h;
if (z) {
appCompatRadioButton.setChecked(z);
appCompatRadioButton.setVisibility(0);
int ordinal2 = rsdVar.i.ordinal();
appCompatRadioButton.setButtonDrawable(ordinal2 != 0 ? ordinal2 != 1 ? 2131235631 : 2131235632 : 2131235630);
} else {
appCompatRadioButton.setVisibility(8);
}
Resources resources2 = progressBar.getContext().getResources();
if (rsdVar.g) {
i2 = 2131235627;
} else {
int ordinal3 = rsdVar.i.ordinal();
i2 = ordinal3 != 0 ? ordinal3 != 1 ? 2131235628 : 2131235629 : 2131235626;
}
progressBar.setProgressDrawable(resources2.getDrawable(i2));
if (rsdVar.g) {
appCompatRadioButton.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public final void onCheckedChanged(CompoundButton compoundButton, boolean z2) {
zj8 zj8Var;
zj8 zj8Var2;
b.a aVar2 = b.a.this;
aVar2.getClass();
rsd rsdVar2 = rsdVar;
rsdVar2.h = true;
b bVar = b.this;
zj8Var = bVar.b;
if (zj8Var != null) {
zj8Var2 = bVar.b;
?? r6 = (PollSheetView) zj8Var2;
qsd qsdVar = r6.G;
qsdVar.d = rsdVar2.b;
ck8 ck8Var = r6.V;
if (ck8Var != null) {
ck8Var.R2(qsdVar.b, rsdVar2.d, r6.P != 2);
}
r6.J(rsdVar2);
if (r6.getContext() instanceof yj8) {
((yj8) r6.getContext()).v2(r6.G);
}
yj8 yj8Var = r6.U;
if (yj8Var != null) {
yj8Var.v2(r6.G);
}
String str = rsdVar2.b;
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put(MediaType.videoType, r6.I);
JSONArray jSONArray = new JSONArray();
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put("quiz", r6.G.b);
jSONObject2.put("answer", str);
jSONArray.put(jSONObject2);
jSONObject.put("resources", jSONArray);
} catch (JSONException unused) {
}
c0.o("https://androidapi.mxplay.com/v1/quiz", jSONObject.toString());
}
}
});
textView.setVisibility(8);
((RecyclerView.z) aVar).itemView.setOnClickListener(new nz(aVar, 10));
appCompatRadioButton.setEnabled(true);
return;
}
appCompatRadioButton.setEnabled(false);
textView.setVisibility(0);
((RecyclerView.z) aVar).itemView.setOnClickListener(null);
appCompatRadioButton.setOnCheckedChangeListener(null);
}
@Override
@NonNull
public a onCreateViewHolder(@NonNull LayoutInflater layoutInflater, @NonNull ViewGroup viewGroup) {
return new a(layoutInflater.inflate(2131559394, viewGroup, false));
}
}