APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:Dgtv
版本号:0.5.8
包名称:haibison.dgtv

MD5 校验值:968838cd794cef01a8eb9d3146a32cc7

反编译源代码说明

g.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package f.a;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.util.Log;
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 java.util.List;

public final class g extends RecyclerView.g<b> {

    private final Context f10575c;

    private final RecyclerView f10576d;

    private List<f.e.a> f10577e;

    public static final class b extends RecyclerView.d0 {
        private ImageView t;
        private TextView u;
        private TextView v;

        private b(View view) {
            super(view);
            this.t = (ImageView) f.l.f.b(view, l.f10583a);
            this.u = (TextView) f.l.f.b(view, l.f10584b);
            this.v = (TextView) f.l.f.b(view, l.f10585c);
        }
    }

    public g(Context context, RecyclerView recyclerView, List<f.e.a> list) {
        this.f10575c = context;
        this.f10576d = recyclerView;
        this.f10577e = list;
        t(true);
    }

    public void B(f.e.a aVar, View view) {
        try {
            String str = aVar.l;
            if (str == null) {
                str = "https://play.google.com/store/apps/details?id=" + aVar.i;
            }
            this.f10575c.startActivity(new Intent("android.intent.action.VIEW").setData(Uri.parse(str)));
        } catch (Throwable th) {
            Log.e("about::0.15.0", th.getMessage(), th);
        }
    }

    public void x(b bVar) {
        i(bVar.j());
    }

    public void z(final b bVar) {
        this.f10576d.post(new Runnable() {
            @Override
            public final void run() {
                g.this.x(bVar);
            }
        });
    }

    @Override
    public void k(final b bVar, int i) {
        final f.e.a aVar = this.f10577e.get(i);
        h.c(aVar, bVar.t, new Runnable() {
            @Override
            public final void run() {
                g.this.z(bVar);
            }
        });
        if (aVar.j != null) {
            bVar.u.setText(aVar.j.c());
        } else {
            bVar.u.setText((CharSequence) null);
        }
        if (aVar.k != null) {
            bVar.v.setText(aVar.k.c());
        } else {
            bVar.v.setText((CharSequence) null);
        }
        bVar.f656b.setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                g.this.B(aVar, view);
            }
        });
    }

    @Override
    public b m(ViewGroup viewGroup, int i) {
        return new b(LayoutInflater.from(viewGroup.getContext()).inflate(m.f10587a, viewGroup, false));
    }

    @Override
    public final int c() {
        List<f.e.a> list = this.f10577e;
        if (list != null) {
            return list.size();
        }
        return 0;
    }

    @Override
    public long d(int i) {
        return f.m.b.b(this.f10577e.get(i).i);
    }

    public synchronized void v(List<f.e.a> list) {
        this.f10577e = list;
        h();
    }
}