Live Football Updates v1.0.1版本的 MD5 值为:636649089335ebb37514551724606ad0
以下内容为反编译后的 i.java 源代码,内容仅作参考
package a7;
import a4.d2;
import android.app.Activity;
import android.os.Bundle;
import android.text.TextUtils;
import android.text.format.DateUtils;
import android.view.ContextMenu;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.o;
import com.bumptech.glide.m;
import com.millingoupdate.app.R;
import i1.v;
import i7.l;
import i7.p;
import i7.u;
import java.util.Objects;
public final class i extends d2<f6.c, RecyclerView.c0> {
public static final a f823h = new a();
public final Activity f824f;
public final c f825g;
public class a extends o.e<f6.c> {
@Override
public final boolean a(f6.c cVar, f6.c cVar2) {
return Objects.equals(cVar.f22669w, cVar2.f22669w);
}
@Override
public final boolean b(f6.c cVar, f6.c cVar2) {
return Objects.equals(cVar.f22669w, cVar2.f22669w);
}
}
public class b extends RecyclerView.c0 implements View.OnClickListener, View.OnCreateContextMenuListener {
public final TextView A;
public final TextView B;
public final TextView C;
public final ViewGroup f826u;
public final ImageView f827v;
public final ImageView f828w;
public final TextView f829x;
public final TextView f830y;
public final TextView f831z;
public b(View view) {
super(view);
this.f826u = (ViewGroup) view.findViewById(R.id.viewRoot);
this.f827v = (ImageView) view.findViewById(R.id.micPostThumb);
this.f828w = (ImageView) view.findViewById(R.id.play_btn);
this.f829x = (TextView) view.findViewById(R.id.micPostTitle);
this.f830y = (TextView) view.findViewById(R.id.date);
this.f831z = (TextView) view.findViewById(R.id.duration);
this.A = (TextView) view.findViewById(R.id.badge1);
this.B = (TextView) view.findViewById(R.id.badge2);
this.C = (TextView) view.findViewById(R.id.badge3);
view.setOnClickListener(this);
view.setOnCreateContextMenuListener(this);
}
@Override
public final void onClick(View view) {
c cVar = i.this.f825g;
if (cVar != null) {
cVar.a(c());
}
}
@Override
public final void onCreateContextMenu(ContextMenu contextMenu, View view, ContextMenu.ContextMenuInfo contextMenuInfo) {
c cVar = i.this.f825g;
if (cVar != null) {
cVar.b(c());
}
}
}
public interface c {
void a(int i);
void b(int i);
}
public i(v vVar, c cVar) {
super(f823h);
this.f824f = vVar;
this.f825g = cVar;
}
@Override
public final int f() {
return super.f();
}
@Override
public final void n(RecyclerView.c0 c0Var, int i) {
boolean z10;
int i10;
String str;
String str2;
long j4;
f6.c w10 = w(i);
b bVar = (b) c0Var;
TextView textView = bVar.f829x;
ImageView imageView = bVar.f827v;
if (w10 != null) {
o6.d r10 = i7.o.r(w10.f22244l);
if (r10 != null && r10.f27687f) {
z10 = true;
} else {
z10 = false;
}
String d10 = i7.o.d(r10);
String c10 = i7.o.c(r10);
String e10 = i7.o.e(r10);
TextView textView2 = bVar.A;
textView2.setText("");
TextView textView3 = bVar.B;
textView3.setText("");
TextView textView4 = bVar.C;
textView4.setText("");
TextView textView5 = bVar.f830y;
textView5.setVisibility(8);
if (u.A() && !z10) {
String str3 = w10.f22237d;
try {
j4 = w10.f22238e;
} catch (Exception unused) {
}
if (j4 != 0) {
CharSequence relativeTimeSpanString = DateUtils.getRelativeTimeSpanString(j4, System.currentTimeMillis(), 1000L, 524288);
if (!TextUtils.isEmpty(relativeTimeSpanString)) {
str2 = relativeTimeSpanString.toString();
}
str2 = str3;
} else {
String d11 = p.d(str3);
if (!TextUtils.isEmpty(d11)) {
str2 = d11;
}
str2 = str3;
}
textView5.setText(str2);
textView5.setVisibility(0);
} else {
textView5.setVisibility(8);
}
Bundle b10 = p.b(d10, c10);
Activity activity = this.f824f;
if (b10 != null && !b10.isEmpty()) {
long j10 = b10.getLong("adjusted_end_date_time_millis");
String string = b10.getString("match_status", "");
string.getClass();
if (!string.equals("finished")) {
if (string.equals("live")) {
w10.f22250r = activity.getString(R.string.event_live1);
}
} else if (!TextUtils.isEmpty(e10) && e10.equalsIgnoreCase("highlights") && j10 != 0) {
try {
CharSequence relativeTimeSpanString2 = DateUtils.getRelativeTimeSpanString(j10, System.currentTimeMillis(), 1000L, 524288);
if (!TextUtils.isEmpty(relativeTimeSpanString2)) {
textView5.setText(relativeTimeSpanString2);
textView5.setVisibility(0);
}
} catch (Exception unused2) {
}
}
}
try {
int o10 = l.o(activity);
m b11 = com.bumptech.glide.b.b(activity).b(activity);
if (!TextUtils.isEmpty(w10.f22242j)) {
str = w10.f22242j;
} else {
str = "https://dummy.lM9OSQ9ttBQ.w3bs1t3/file-f4k3.jpg";
}
b11.k(str).l(o10).e(o10).B(imageView);
} catch (Exception unused3) {
}
try {
textView.setText(dk.f.a().b(w10.f22236c, "").n0());
} catch (Exception unused4) {
textView.setText(w10.f22236c);
}
boolean equalsIgnoreCase = w10.f22240g.equalsIgnoreCase("audio");
ImageView imageView2 = bVar.f828w;
if (!equalsIgnoreCase && !w10.f22240g.equalsIgnoreCase("video")) {
imageView2.setVisibility(8);
} else {
if (u.B()) {
i10 = 0;
} else {
i10 = 8;
}
imageView2.setVisibility(i10);
}
boolean isEmpty = TextUtils.isEmpty(w10.f22241h);
TextView textView6 = bVar.f831z;
if (!isEmpty) {
textView6.setText(w10.f22241h);
textView6.setVisibility(0);
} else {
textView6.setVisibility(8);
}
if (!TextUtils.isEmpty(w10.f22248p)) {
if (w10.f22248p.equalsIgnoreCase("highlights")) {
w10.f22248p = activity.getString(R.string.event_highlights);
}
if (w10.f22248p.equalsIgnoreCase("Trending")) {
w10.f22248p = activity.getString(R.string.title_trending);
}
textView2.setText(w10.f22248p);
textView2.setVisibility(0);
} else {
textView2.setVisibility(8);
}
if (!TextUtils.isEmpty(w10.f22249q)) {
if (w10.f22249q.equalsIgnoreCase("highlights")) {
w10.f22249q = activity.getString(R.string.event_highlights);
}
if (w10.f22249q.equalsIgnoreCase("Trending")) {
w10.f22249q = activity.getString(R.string.title_trending);
}
textView3.setText(w10.f22249q);
textView3.setVisibility(0);
} else {
textView3.setVisibility(8);
}
if (!TextUtils.isEmpty(w10.f22250r)) {
if (w10.f22250r.equalsIgnoreCase("highlights")) {
w10.f22250r = activity.getString(R.string.event_highlights);
}
if (w10.f22250r.equalsIgnoreCase("Trending")) {
w10.f22250r = activity.getString(R.string.title_trending);
}
textView4.setText(w10.f22250r);
textView4.setVisibility(0);
return;
}
textView4.setVisibility(8);
return;
}
imageView.invalidate();
textView.invalidate();
}
@Override
public final RecyclerView.c0 o(RecyclerView recyclerView, int i) {
return new b(LayoutInflater.from(recyclerView.getContext()).inflate(R.layout.list_item_mic_post_grid, (ViewGroup) recyclerView, false));
}
}