Live Football Updates v1.0版本的 MD5 值为:95609b5a5bec0a5f5a0b6e8e4d8f1cba
以下内容为反编译后的 a.java 源代码,内容仅作参考
package z6;
import a4.d2;
import android.content.Context;
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 dk.f;
import i7.l;
import i7.p;
import i7.u;
import java.util.Objects;
import o6.d;
public final class a extends d2<e6.c, RecyclerView.c0> {
public static final C0454a f35001h = new C0454a();
public final Context f35002f;
public final c f35003g;
public class C0454a extends o.e<e6.c> {
@Override
public final boolean a(e6.c cVar, e6.c cVar2) {
return Objects.equals(cVar.f22249w, cVar2.f22249w);
}
@Override
public final boolean b(e6.c cVar, e6.c cVar2) {
return Objects.equals(cVar.f22249w, cVar2.f22249w);
}
}
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 f35004u;
public final ImageView f35005v;
public final ImageView f35006w;
public final TextView f35007x;
public final TextView f35008y;
public final TextView f35009z;
public b(View view) {
super(view);
this.f35004u = (ViewGroup) view.findViewById(R.id.viewRoot);
this.f35005v = (ImageView) view.findViewById(R.id.thumb);
this.f35006w = (ImageView) view.findViewById(R.id.play_btn);
this.f35007x = (TextView) view.findViewById(R.id.postTitle);
this.f35008y = (TextView) view.findViewById(R.id.date);
this.f35009z = (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 = a.this.f35003g;
if (cVar != null) {
cVar.a(c());
}
}
@Override
public final void onCreateContextMenu(ContextMenu contextMenu, View view, ContextMenu.ContextMenuInfo contextMenuInfo) {
c cVar = a.this.f35003g;
if (cVar != null) {
cVar.b(c());
}
}
}
public interface c {
void a(int i);
void b(int i);
}
public a(Context context, c cVar) {
super(f35001h);
this.f35002f = context;
this.f35003g = cVar;
}
@Override
public final int f() {
return super.f();
}
@Override
public final int h(int i) {
return i;
}
@Override
public final void n(RecyclerView.c0 c0Var, int i) {
int i10;
int i11;
String str;
e6.c w10 = w(i);
b bVar = (b) c0Var;
ImageView imageView = bVar.f35006w;
TextView textView = bVar.f35007x;
ImageView imageView2 = bVar.f35005v;
TextView textView2 = bVar.f35009z;
if (w10 != null) {
Context context = this.f35002f;
TextView textView3 = bVar.A;
textView3.setText("");
TextView textView4 = bVar.B;
textView4.setText("");
TextView textView5 = bVar.C;
textView5.setText("");
TextView textView6 = bVar.f35008y;
textView6.setVisibility(8);
try {
int o10 = l.o(a.this.f35002f);
m b10 = com.bumptech.glide.b.b(context).b(context);
if (!TextUtils.isEmpty(w10.f22237j)) {
str = w10.f22237j;
} else {
str = "https://dummy.lM9OSQ9ttBQ.w3bs1t3/file-f4k3.jpg";
}
b10.k(str).l(o10).e(o10).B(imageView2);
} catch (Exception unused) {
}
try {
textView.setText(f.a().b(w10.f22231c, "").n0());
} catch (Exception unused2) {
textView.setText(w10.f22231c);
}
if (u.A()) {
String str2 = w10.f22232d;
try {
long j4 = w10.f22233e;
if (j4 != 0) {
CharSequence relativeTimeSpanString = DateUtils.getRelativeTimeSpanString(j4, System.currentTimeMillis(), 1000L, 524288);
if (!TextUtils.isEmpty(relativeTimeSpanString)) {
str2 = relativeTimeSpanString.toString();
}
} else {
String d10 = p.d(str2);
if (!TextUtils.isEmpty(d10)) {
str2 = d10;
}
}
} catch (Exception unused3) {
}
textView6.setText(str2);
textView6.setVisibility(0);
i10 = 8;
} else {
i10 = 8;
textView6.setVisibility(8);
}
if (!w10.f22235g.equalsIgnoreCase("audio") && !w10.f22235g.equalsIgnoreCase("video")) {
imageView.setVisibility(i10);
} else {
if (u.B()) {
i11 = 0;
} else {
i11 = 8;
}
imageView.setVisibility(i11);
}
if (!TextUtils.isEmpty(w10.f22236h)) {
textView2.setText(w10.f22236h);
textView2.setVisibility(0);
} else {
textView2.setVisibility(8);
}
d r10 = i7.o.r(w10.f22239l);
String d11 = i7.o.d(r10);
String c10 = i7.o.c(r10);
String e10 = i7.o.e(r10);
Bundle b11 = p.b(d11, c10);
if (b11 != null && !b11.isEmpty()) {
long j10 = b11.getLong("adjusted_end_date_time_millis");
String string = b11.getString("match_status", "");
string.getClass();
if (!string.equals("finished")) {
if (string.equals("live")) {
w10.f22243p = context.getString(R.string.event_live);
}
} else if (!TextUtils.isEmpty(e10) && e10.equalsIgnoreCase("highlights") && j10 != 0) {
try {
CharSequence relativeTimeSpanString2 = DateUtils.getRelativeTimeSpanString(j10, System.currentTimeMillis(), 1000L, 524288);
if (!TextUtils.isEmpty(relativeTimeSpanString2)) {
textView6.setText(relativeTimeSpanString2);
textView6.setVisibility(0);
}
} catch (Exception unused4) {
}
}
}
if (!TextUtils.isEmpty(w10.f22243p)) {
if (w10.f22243p.equalsIgnoreCase("highlights")) {
w10.f22243p = context.getString(R.string.event_highlights);
}
if (w10.f22243p.equalsIgnoreCase("Trailer")) {
w10.f22243p = context.getString(R.string.title_trailer);
}
if (w10.f22243p.equalsIgnoreCase("Trending")) {
w10.f22243p = context.getString(R.string.title_trending);
}
textView3.setText(w10.f22243p);
textView3.setVisibility(0);
} else {
textView3.setVisibility(8);
}
if (!TextUtils.isEmpty(w10.f22244q)) {
if (w10.f22244q.equalsIgnoreCase("highlights")) {
w10.f22244q = context.getString(R.string.event_highlights);
}
if (w10.f22244q.equalsIgnoreCase("Trailer")) {
w10.f22244q = context.getString(R.string.title_trailer);
}
if (w10.f22244q.equalsIgnoreCase("Trending")) {
w10.f22244q = context.getString(R.string.title_trending);
}
textView4.setText(w10.f22244q);
textView4.setVisibility(0);
} else {
textView4.setVisibility(8);
}
if (!TextUtils.isEmpty(w10.f22245r)) {
if (w10.f22245r.equalsIgnoreCase("highlights")) {
w10.f22245r = context.getString(R.string.event_highlights);
}
if (w10.f22245r.equalsIgnoreCase("Trailer")) {
w10.f22245r = context.getString(R.string.title_trailer);
}
if (w10.f22245r.equalsIgnoreCase("Trending")) {
w10.f22245r = context.getString(R.string.title_trending);
}
textView5.setText(w10.f22245r);
textView5.setVisibility(0);
return;
}
textView5.setVisibility(8);
return;
}
textView2.invalidate();
imageView2.invalidate();
textView.invalidate();
imageView.invalidate();
}
@Override
public final RecyclerView.c0 o(RecyclerView recyclerView, int i) {
return new b(LayoutInflater.from(recyclerView.getContext()).inflate(R.layout.list_item_mav_post_grid, (ViewGroup) recyclerView, false));
}
}