导航菜单

页面标题

页面副标题

Mint v5.7.3 - a.java 源代码

正在查看: Mint v5.7.3 应用的 a.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package f8;

import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.text.Html;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.databinding.DataBindingUtil;
import com.google.gson.Gson;
import com.htmedia.mint.AppController;
import com.htmedia.mint.pojo.companydetailnew.AboutCompanyPojo;
import com.htmedia.mint.pojo.companydetailnew.Officer;
import com.htmedia.mint.utils.o1;
import com.taboola.android.global_components.eventsmanager.TBLEventType;
import java.nio.charset.StandardCharsets;
import java.util.HashMap;
import java.util.List;
import org.json.JSONObject;
import x4.kt0;

public class a implements k6.q {
    private final String a = "aboutCompany";
    private k6.p b;
    kt0 c;
    private String d;
    private String e;
    Activity f;
    Context g;
    LayoutInflater h;
    ViewGroup i;

    public a(Activity activity, ViewGroup viewGroup, Context context, String str, String str2) {
        this.f = activity;
        this.g = context;
        this.i = viewGroup;
        this.d = str;
        this.e = str2;
    }

    void a(List<Officer> list, LinearLayout linearLayout) {
        linearLayout.removeAllViews();
        LayoutInflater layoutInflater = (LayoutInflater) this.g.getSystemService("layout_inflater");
        for (int i = 0; i < list.size(); i++) {
            View inflate = layoutInflater.inflate(2131624820, (ViewGroup) linearLayout, false);
            TextView textView = (TextView) inflate.findViewById(2131429881);
            if (AppController.j().E()) {
                textView.setTextColor(Color.parseColor("#eeeeee"));
            } else {
                textView.setTextColor(Color.parseColor("#000000"));
            }
            TextView textView2 = (TextView) inflate.findViewById(2131428211);
            textView.setText(list.get(i).getFirstName() + " " + list.get(i).getLastName());
            textView2.setText(list.get(i).getTitle().getValue());
            linearLayout.addView(inflate);
        }
    }

    void b() {
        HashMap<String, String> hashMap = new HashMap<>();
        hashMap.put("mintgenie-client", TBLEventType.DEFAULT);
        this.b.k(0, "aboutCompany", "https://api-mintgenie.livemint.com/api-gateway/fundamental/api/v2/companyProfile/" + this.d, null, hashMap, true, false);
    }

    public void c() {
        this.i.removeAllViews();
        LayoutInflater from = LayoutInflater.from(this.g);
        this.h = from;
        this.c = DataBindingUtil.inflate(from, 2131625319, (ViewGroup) null, false);
        this.b = new k6.p(this.f, this, "aboutCompany");
        b();
        this.c.c(AppController.j().E());
        this.i.addView(this.c.getRoot());
    }

    @Override
    public void getAboutCompanyData(JSONObject jSONObject, String str) {
        AboutCompanyPojo aboutCompanyPojo = (AboutCompanyPojo) new Gson().fromJson(jSONObject.toString(), AboutCompanyPojo.class);
        String str2 = new String(aboutCompanyPojo.getCompanyDescription().getBytes(StandardCharsets.ISO_8859_1), StandardCharsets.UTF_8);
        o1.a("error2 ", str2);
        this.c.a.setText(Html.fromHtml(str2, 63).toString());
        this.c.d.setText(aboutCompanyPojo.getMgIndustry());
        this.c.e.setText(aboutCompanyPojo.getIsInId());
        this.c.b.setText(aboutCompanyPojo.getExchangeCodeBse());
        this.c.g.setText(aboutCompanyPojo.getExchangeCodeNse());
        this.c.c.setText("About " + this.e);
        a(aboutCompanyPojo.getOfficers().getOfficer(), this.c.f);
    }

    @Override
    public void onError(String str, String str2) {
    }
}