Live Football Updates v1.0版本的 MD5 值为:95609b5a5bec0a5f5a0b6e8e4d8f1cba
以下内容为反编译后的 h.java 源代码,内容仅作参考
package a7;
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.applive.app.ui.activities.MyMainActivity;
import com.bumptech.glide.m;
import com.millingoupdate.app.R;
import e7.c0;
import i7.l;
import i7.p;
import i7.u;
import java.util.Objects;
public final class h extends d2<f6.b, RecyclerView.c0> {
public static final a f811h = new a();
public final Context f812f;
public final b f813g;
public class a extends o.e<f6.b> {
@Override
public final boolean a(f6.b bVar, f6.b bVar2) {
f6.b bVar3 = bVar;
f6.b bVar4 = bVar2;
if (Objects.equals(bVar3.f22663w, bVar4.f22663w) && Objects.equals(bVar3.f22231c, bVar4.f22231c) && Objects.equals(bVar3.i, bVar4.i)) {
return true;
}
return false;
}
@Override
public final boolean b(f6.b bVar, f6.b bVar2) {
return Objects.equals(bVar.f22663w, bVar2.f22663w);
}
}
public interface b {
}
public class c extends RecyclerView.c0 implements View.OnClickListener, View.OnCreateContextMenuListener {
public final TextView A;
public final TextView B;
public final TextView C;
public final ViewGroup f814u;
public final ImageView f815v;
public final ImageView f816w;
public final TextView f817x;
public final TextView f818y;
public final TextView f819z;
public c(View view) {
super(view);
this.f814u = (ViewGroup) view.findViewById(R.id.viewRoot);
this.f815v = (ImageView) view.findViewById(R.id.micPostThumb);
this.f816w = (ImageView) view.findViewById(R.id.play_btn);
this.f817x = (TextView) view.findViewById(R.id.micPostTitle);
this.f818y = (TextView) view.findViewById(R.id.date);
this.f819z = (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) {
f6.b bVar;
b bVar2 = h.this.f813g;
if (bVar2 != null) {
c0 c0Var = (c0) bVar2;
try {
bVar = c0Var.f22269e0.w(c());
} catch (Exception e10) {
e10.printStackTrace();
bVar = null;
}
if (bVar != null) {
c0Var.f22271h0 = c0.t0(bVar);
if (((MyMainActivity) c0Var.d0()).R()) {
((MyMainActivity) c0Var.d0()).V(c0Var.d0());
} else {
c0Var.u0(c0Var.f22271h0);
}
}
}
}
@Override
public final void onCreateContextMenu(ContextMenu contextMenu, View view, ContextMenu.ContextMenuInfo contextMenuInfo) {
f6.b bVar;
b bVar2 = h.this.f813g;
if (bVar2 != null) {
c0 c0Var = (c0) bVar2;
try {
bVar = c0Var.f22269e0.w(c());
} catch (Exception e10) {
e10.printStackTrace();
bVar = null;
}
if (bVar != null) {
e7.a v02 = e7.a.v0(c0.t0(bVar));
v02.t0(c0Var.v(), v02.f24155y);
}
}
}
}
public h(Context context, b bVar) {
super(f811h);
this.f812f = context;
this.f813g = bVar;
}
@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.b w10 = w(i);
c cVar = (c) c0Var;
ImageView imageView = cVar.f815v;
if (w10 != null) {
TextView textView = cVar.f817x;
o6.d r10 = i7.o.r(w10.f22239l);
if (r10 != null && r10.f27682f) {
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 = cVar.A;
textView2.setText("");
TextView textView3 = cVar.B;
textView3.setText("");
TextView textView4 = cVar.C;
textView4.setText("");
TextView textView5 = cVar.f818y;
textView5.setVisibility(8);
if (u.A() && !z10) {
String str3 = w10.f22232d;
try {
j4 = w10.f22233e;
} 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);
Context context = this.f812f;
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.f22245r = context.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(h.this.f812f);
m b11 = 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";
}
b11.k(str).l(o10).e(o10).B(imageView);
} catch (Exception unused3) {
}
try {
textView.setText(dk.f.a().b(w10.f22231c, "").n0());
} catch (Exception unused4) {
textView.setText(w10.f22231c);
}
boolean equalsIgnoreCase = w10.f22235g.equalsIgnoreCase("audio");
ImageView imageView2 = cVar.f816w;
if (!equalsIgnoreCase && !w10.f22235g.equalsIgnoreCase("video")) {
imageView2.setVisibility(8);
} else {
if (u.B()) {
i10 = 0;
} else {
i10 = 8;
}
imageView2.setVisibility(i10);
}
boolean isEmpty = TextUtils.isEmpty(w10.f22236h);
TextView textView6 = cVar.f819z;
if (!isEmpty) {
textView6.setText(w10.f22236h);
textView6.setVisibility(0);
} else {
textView6.setVisibility(8);
}
if (!TextUtils.isEmpty(w10.f22243p)) {
if (w10.f22243p.equalsIgnoreCase("highlights")) {
w10.f22243p = context.getString(R.string.event_highlights);
}
if (w10.f22243p.equalsIgnoreCase("Trending")) {
w10.f22243p = context.getString(R.string.title_trending);
}
textView2.setText(w10.f22243p);
textView2.setVisibility(0);
} else {
textView2.setVisibility(8);
}
if (!TextUtils.isEmpty(w10.f22244q)) {
if (w10.f22244q.equalsIgnoreCase("highlights")) {
w10.f22244q = context.getString(R.string.event_highlights);
}
if (w10.f22244q.equalsIgnoreCase("Trending")) {
w10.f22244q = context.getString(R.string.title_trending);
}
textView3.setText(w10.f22244q);
textView3.setVisibility(0);
} else {
textView3.setVisibility(8);
}
if (!TextUtils.isEmpty(w10.f22245r)) {
if (w10.f22245r.equalsIgnoreCase("highlights")) {
w10.f22245r = context.getString(R.string.event_highlights);
}
if (w10.f22245r.equalsIgnoreCase("Trending")) {
w10.f22245r = context.getString(R.string.title_trending);
}
textView4.setText(w10.f22245r);
textView4.setVisibility(0);
return;
}
textView4.setVisibility(8);
return;
}
imageView.invalidate();
}
@Override
public final RecyclerView.c0 o(RecyclerView recyclerView, int i) {
return new c(LayoutInflater.from(recyclerView.getContext()).inflate(R.layout.list_item_mic_post_grid, (ViewGroup) recyclerView, false));
}
}