正在查看: Mint v5.7.3 应用的 g.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mint v5.7.3 应用的 g.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package e8;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import androidx.databinding.DataBindingUtil;
import com.htmedia.mint.AppController;
import com.htmedia.mint.pojo.companies.financials.mintgeine.BAL;
import com.htmedia.mint.pojo.companies.financials.mintgeine.CA;
import com.htmedia.mint.pojo.companies.financials.mintgeine.FinancialsMintGeinePojo;
import com.htmedia.mint.pojo.companies.financials.mintgeine.INC;
import com.htmedia.mint.pojo.companies.financials.mintgeine.Root;
import com.htmedia.mint.ui.activity.WebViewActivityWithHeader;
import com.htmedia.mint.utils.f0;
import com.htmedia.mint.utils.o1;
import com.htmedia.mint.utils.r1;
import com.razorpay.R;
import com.thoughtbot.expandablerecyclerview.BuildConfig;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.concurrent.ConcurrentHashMap;
import org.json.JSONObject;
import q7.v;
import x4.id;
public class g implements k6.q {
static boolean t;
public static int u;
private final LinearLayout b;
private final AppCompatActivity c;
private k6.p d;
private final Context e;
private String f;
private String g;
private id h;
ArrayList<String> i;
v j;
FinancialsMintGeinePojo o;
ConcurrentHashMap<String, INC[]> p;
HashMap<String, ArrayList<BAL>> q;
HashMap<String, ArrayList<CA>> r;
private final String a = "Financial";
r1 s = new r1();
class a implements View.OnClickListener {
a() {
}
@Override
public void onClick(View view) {
Intent intent = new Intent(g.this.e, (Class<?>) WebViewActivityWithHeader.class);
intent.putExtra("url", "https://mintgenie.livemint.com/stocks/financials/" + g.this.g + "-" + g.this.f + "?utm_source=lm_stock_financials&utm_medium=livemint&utm_campaign=livemint");
intent.putExtra("Title", BuildConfig.FLAVOR);
intent.putExtra("IS_SHOW_HEADER", true);
g.this.e.startActivity(intent);
}
}
class b implements View.OnTouchListener {
b() {
}
@Override
public boolean onTouch(View view, MotionEvent motionEvent) {
g.t = true;
return false;
}
}
class c implements AdapterView.OnItemSelectedListener {
c() {
}
@Override
public void onItemSelected(AdapterView<?> adapterView, View view, int i, long j) {
o1.a("onItemSelectedListeneer" + i, "ISTOUCHED IS " + g.t);
g.this.h.w.setSelection(i);
if (g.t && g.u != i) {
g.u = i;
g.this.z();
}
g.t = false;
g.this.j.b(i);
}
@Override
public void onNothingSelected(AdapterView<?> adapterView) {
}
}
public g(LinearLayout linearLayout, AppCompatActivity appCompatActivity, Context context, String str, String str2) {
this.f = BuildConfig.FLAVOR;
this.g = BuildConfig.FLAVOR;
this.b = linearLayout;
this.c = appCompatActivity;
this.e = context;
this.f = str;
this.g = str2;
}
public void m(View view) {
if (this.h.h.getVisibility() == 0) {
this.h.h.setVisibility(8);
if (AppController.j().E()) {
this.h.u.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232060));
return;
} else {
this.h.u.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232059));
return;
}
}
this.h.h.setVisibility(0);
if (AppController.j().E()) {
this.h.u.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232088));
} else {
this.h.u.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232467));
}
}
public void n(View view) {
if (this.h.h.getVisibility() == 0) {
this.h.h.setVisibility(8);
if (AppController.j().E()) {
this.h.u.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232060));
return;
} else {
this.h.u.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232059));
return;
}
}
this.h.h.setVisibility(0);
if (AppController.j().E()) {
this.h.u.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232088));
} else {
this.h.u.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232467));
}
}
public void o(View view) {
if (this.h.d.getVisibility() == 0) {
this.h.d.setVisibility(8);
if (AppController.j().E()) {
this.h.t.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232060));
return;
} else {
this.h.t.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232059));
return;
}
}
this.h.d.setVisibility(0);
if (AppController.j().E()) {
this.h.t.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232088));
} else {
this.h.t.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232467));
}
}
public void p(View view) {
if (this.h.d.getVisibility() == 0) {
this.h.d.setVisibility(8);
if (AppController.j().E()) {
this.h.t.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232060));
return;
} else {
this.h.t.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232059));
return;
}
}
this.h.d.setVisibility(0);
if (AppController.j().E()) {
this.h.t.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232088));
} else {
this.h.t.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232467));
}
}
public void q(View view) {
if (this.h.a.getVisibility() == 0) {
this.h.a.setVisibility(8);
if (AppController.j().E()) {
this.h.s.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232060));
return;
} else {
this.h.s.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232059));
return;
}
}
this.h.a.setVisibility(0);
if (AppController.j().E()) {
this.h.s.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232088));
} else {
this.h.s.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232467));
}
}
public void r(View view) {
if (this.h.a.getVisibility() == 0) {
this.h.a.setVisibility(8);
if (AppController.j().E()) {
this.h.s.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232060));
return;
} else {
this.h.s.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232059));
return;
}
}
this.h.a.setVisibility(0);
if (AppController.j().E()) {
this.h.s.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232088));
} else {
this.h.s.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232467));
}
}
private void x() {
ArrayList<String> arrayList = this.i;
if (arrayList == null || arrayList.size() <= 0) {
ArrayList<String> arrayList2 = new ArrayList<>();
this.i = arrayList2;
arrayList2.add(this.e.getString(2131951698));
this.i.add(this.e.getString(2131952455));
v vVar = new v(this.e, 2131624471, this.i);
this.j = vVar;
vVar.setDropDownViewResource(2131624511);
this.h.w.setAdapter(this.j);
this.h.w.setOnTouchListener(new b());
this.h.w.setOnItemSelectedListener(new c());
}
}
private void y(TextView textView) {
if (AppController.j().E()) {
textView.setTextColor(ContextCompat.getColor(this.e, 2131100599));
} else {
textView.setTextColor(ContextCompat.getColor(this.e, 2131101012));
}
}
@Override
public void getAboutCompanyData(JSONObject jSONObject, String str) {
this.o = this.s.x(jSONObject);
z();
}
public String k(String str) {
if (str != null) {
try {
} catch (Exception unused) {
o1.a("Exception in", " formatting number ");
}
if (!str.equalsIgnoreCase(BuildConfig.FLAVOR)) {
str = String.format("%,.2f", Float.valueOf(Float.parseFloat(str)));
return str;
}
}
str = BuildConfig.FLAVOR + str;
return str;
}
public void l() {
String str;
this.b.removeAllViews();
id inflate = DataBindingUtil.inflate(this.c.getLayoutInflater(), 2131624272, (ViewGroup) null, false);
this.h = inflate;
inflate.x.setText(String.format(this.e.getString(2131951998), this.g));
this.h.c(f0.Z1());
this.q = new HashMap<>();
this.p = new ConcurrentHashMap<>();
this.r = new HashMap<>();
x();
this.d = new k6.p(this.e, this, "Financial");
if (k6.p.o[0] == null || (str = k6.p.r) == null || !str.equals(this.f)) {
this.d.e(this.s.g(this.f));
} else {
this.o = k6.p.o[0];
z();
}
this.h.i.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
g.this.m(view);
}
});
this.h.j.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
g.this.n(view);
}
});
this.h.c.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
g.this.o(view);
}
});
this.h.p.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
g.this.p(view);
}
});
this.h.b.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
g.this.q(view);
}
});
this.h.o.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
g.this.r(view);
}
});
this.h.e.setOnClickListener(new a());
this.b.addView(this.h.getRoot());
v();
}
@Override
public void onError(String str, String str2) {
}
public void s(LinearLayout linearLayout, String str, String str2, String str3, String str4) {
LinearLayout linearLayout2 = (LinearLayout) LayoutInflater.from(this.e).inflate(2131624530, (ViewGroup) null, false);
TextView textView = (TextView) linearLayout2.findViewById(R.id.tv_title);
TextView textView2 = (TextView) linearLayout2.findViewById(2131431210);
TextView textView3 = (TextView) linearLayout2.findViewById(2131431251);
TextView textView4 = (TextView) linearLayout2.findViewById(2131431252);
TextView textView5 = (TextView) linearLayout2.findViewById(2131431253);
y(textView);
y(textView2);
y(textView3);
y(textView4);
y(textView5);
textView.setText("Period");
textView2.setText(str);
textView3.setText(str2);
textView4.setText(str3);
textView5.setText(str4);
linearLayout.addView(linearLayout2);
}
public void t(ArrayList<BAL> arrayList, ArrayList<BAL> arrayList2, ArrayList<BAL> arrayList3, ArrayList<BAL> arrayList4, String str, String str2, String str3, String str4) {
this.h.a.removeAllViews();
s(this.h.a, str, str2, str3, str4);
ArrayList arrayList5 = new ArrayList();
if (arrayList != null && arrayList2 != null && arrayList.size() > arrayList2.size()) {
Iterator<BAL> it = arrayList.iterator();
while (it.hasNext()) {
arrayList5.add(it.next().getDisplayName());
}
} else if (arrayList2 != null) {
Iterator<BAL> it2 = arrayList2.iterator();
while (it2.hasNext()) {
arrayList5.add(it2.next().getDisplayName());
}
}
Iterator it3 = arrayList5.iterator();
boolean z = false;
int i = 0;
while (it3.hasNext()) {
String str5 = (String) it3.next();
LinearLayout linearLayout = (LinearLayout) LayoutInflater.from(this.e).inflate(2131624530, (ViewGroup) null, z);
TextView textView = (TextView) linearLayout.findViewById(R.id.tv_title);
TextView textView2 = (TextView) linearLayout.findViewById(2131431210);
TextView textView3 = (TextView) linearLayout.findViewById(2131431251);
TextView textView4 = (TextView) linearLayout.findViewById(2131431252);
TextView textView5 = (TextView) linearLayout.findViewById(2131431253);
View findViewById = linearLayout.findViewById(2131431935);
textView.setText(str5);
y(textView);
int i2 = 2131100223;
if (arrayList != null) {
Iterator<BAL> it4 = arrayList.iterator();
while (it4.hasNext()) {
BAL next = it4.next();
if (next.getDisplayName().equalsIgnoreCase(str5)) {
if (Double.parseDouble(next.getValue()) == -99999.99d) {
textView2.setText("-");
} else {
textView2.setText(k(next.getValue()));
}
if (next.getValue().contains("-")) {
textView2.setTextColor(this.e.getResources().getColor(2131100766));
} else {
textView2.setTextColor(this.e.getResources().getColor(i2));
}
}
i2 = 2131100223;
}
}
if (arrayList2 != null) {
Iterator<BAL> it5 = arrayList2.iterator();
while (it5.hasNext()) {
BAL next2 = it5.next();
if (next2.getDisplayName().equalsIgnoreCase(str5)) {
if (Double.parseDouble(next2.getValue()) == -99999.99d) {
textView3.setText("-");
} else {
textView3.setText(k(next2.getValue()));
}
if (next2.getValue().contains("-")) {
textView3.setTextColor(this.e.getResources().getColor(2131100766));
} else {
textView3.setTextColor(this.e.getResources().getColor(2131100223));
}
}
}
}
if (arrayList3 != null) {
Iterator<BAL> it6 = arrayList3.iterator();
while (it6.hasNext()) {
BAL next3 = it6.next();
if (next3.getDisplayName().equalsIgnoreCase(str5)) {
if (Double.parseDouble(next3.getValue()) == -99999.99d) {
textView4.setText("-");
} else {
textView4.setText(k(next3.getValue()));
}
if (next3.getValue().contains("-")) {
textView4.setTextColor(this.e.getResources().getColor(2131100766));
} else {
textView4.setTextColor(this.e.getResources().getColor(2131100223));
}
}
}
}
if (arrayList4 != null) {
Iterator<BAL> it7 = arrayList4.iterator();
while (it7.hasNext()) {
BAL next4 = it7.next();
if (next4.getDisplayName().equalsIgnoreCase(str5)) {
if (Double.parseDouble(next4.getValue()) == -99999.99d) {
textView5.setText("-");
} else {
textView5.setText(k(next4.getValue()));
}
if (next4.getValue().contains("-")) {
textView5.setTextColor(this.e.getResources().getColor(2131100766));
} else {
textView5.setTextColor(this.e.getResources().getColor(2131100223));
}
}
}
}
this.h.a.addView(linearLayout);
i++;
if (i == arrayList5.size()) {
findViewById.setVisibility(4);
}
z = false;
}
}
public void u(ArrayList<CA> arrayList, ArrayList<CA> arrayList2, ArrayList<CA> arrayList3, ArrayList<CA> arrayList4, String str, String str2, String str3, String str4) {
this.h.d.removeAllViews();
s(this.h.d, str, str2, str3, str4);
ArrayList arrayList5 = new ArrayList();
if (arrayList == null || arrayList2 == null || arrayList.size() <= arrayList2.size()) {
Iterator<CA> it = arrayList2.iterator();
while (it.hasNext()) {
arrayList5.add(it.next().getDisplayName());
}
} else {
Iterator<CA> it2 = arrayList.iterator();
while (it2.hasNext()) {
arrayList5.add(it2.next().getDisplayName());
}
}
Iterator it3 = arrayList5.iterator();
boolean z = false;
int i = 0;
while (it3.hasNext()) {
String str5 = (String) it3.next();
LinearLayout linearLayout = (LinearLayout) LayoutInflater.from(this.e).inflate(2131624530, (ViewGroup) null, z);
TextView textView = (TextView) linearLayout.findViewById(R.id.tv_title);
TextView textView2 = (TextView) linearLayout.findViewById(2131431210);
TextView textView3 = (TextView) linearLayout.findViewById(2131431251);
TextView textView4 = (TextView) linearLayout.findViewById(2131431252);
TextView textView5 = (TextView) linearLayout.findViewById(2131431253);
View findViewById = linearLayout.findViewById(2131431935);
textView.setText(str5);
y(textView);
int i2 = 2131100223;
if (arrayList != null) {
Iterator<CA> it4 = arrayList.iterator();
while (it4.hasNext()) {
CA next = it4.next();
if (next.getDisplayName().equalsIgnoreCase(str5)) {
if (Double.parseDouble(next.getValue()) == -99999.99d) {
textView2.setText("-");
} else {
textView2.setText(k(next.getValue()));
}
if (next.getValue().contains("-")) {
textView2.setTextColor(this.e.getResources().getColor(2131100766));
} else {
textView2.setTextColor(this.e.getResources().getColor(i2));
}
}
i2 = 2131100223;
}
}
if (arrayList2 != null) {
Iterator<CA> it5 = arrayList2.iterator();
while (it5.hasNext()) {
CA next2 = it5.next();
if (next2.getDisplayName().equalsIgnoreCase(str5)) {
if (Double.parseDouble(next2.getValue()) == -99999.99d) {
textView3.setText("-");
} else {
textView3.setText(k(next2.getValue()));
}
if (next2.getValue().contains("-")) {
textView3.setTextColor(this.e.getResources().getColor(2131100766));
} else {
textView3.setTextColor(this.e.getResources().getColor(2131100223));
}
}
}
}
if (arrayList3 != null) {
Iterator<CA> it6 = arrayList3.iterator();
while (it6.hasNext()) {
CA next3 = it6.next();
if (next3.getDisplayName().equalsIgnoreCase(str5)) {
if (Double.parseDouble(next3.getValue()) == -99999.99d) {
textView4.setText("-");
} else {
textView4.setText(k(next3.getValue()));
}
if (next3.getValue().contains("-")) {
textView4.setTextColor(this.e.getResources().getColor(2131100766));
} else {
textView4.setTextColor(this.e.getResources().getColor(2131100223));
}
}
}
}
if (arrayList4 != null) {
Iterator<CA> it7 = arrayList4.iterator();
while (it7.hasNext()) {
CA next4 = it7.next();
if (next4.getDisplayName().equalsIgnoreCase(str5)) {
if (Double.parseDouble(next4.getValue()) == -99999.99d) {
textView5.setText("-");
} else {
textView5.setText(k(next4.getValue()));
}
if (next4.getValue().contains("-")) {
textView5.setTextColor(this.e.getResources().getColor(2131100766));
} else {
textView5.setTextColor(this.e.getResources().getColor(2131100223));
}
}
}
}
this.h.d.addView(linearLayout);
i++;
if (i == arrayList5.size()) {
findViewById.setVisibility(4);
}
z = false;
}
}
public void v() {
if (AppController.j().E()) {
this.h.x.setTextColor(ContextCompat.getColor(this.e, 2131100599));
this.h.i.setTextColor(ContextCompat.getColor(this.e, 2131100599));
this.h.b.setTextColor(ContextCompat.getColor(this.e, 2131100599));
this.h.c.setTextColor(ContextCompat.getColor(this.e, 2131100599));
if (this.h.d.getVisibility() != 0) {
this.h.t.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232060));
} else {
this.h.t.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232088));
}
if (this.h.h.getVisibility() != 0) {
this.h.u.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232060));
} else {
this.h.u.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232088));
}
if (this.h.a.getVisibility() != 0) {
this.h.s.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232060));
} else {
this.h.s.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232088));
}
this.h.i.setBackgroundColor(ContextCompat.getColor(this.e, 2131100187));
this.h.b.setBackgroundColor(ContextCompat.getColor(this.e, 2131100187));
this.h.c.setBackgroundColor(ContextCompat.getColor(this.e, 2131100187));
this.h.j.setBackgroundColor(ContextCompat.getColor(this.e, 2131100187));
this.h.o.setBackgroundColor(ContextCompat.getColor(this.e, 2131100187));
this.h.p.setBackgroundColor(ContextCompat.getColor(this.e, 2131100187));
this.h.h.setBackgroundColor(ContextCompat.getColor(this.e, 2131099905));
this.h.a.setBackgroundColor(ContextCompat.getColor(this.e, 2131099905));
this.h.d.setBackgroundColor(ContextCompat.getColor(this.e, 2131099905));
this.h.v.setBackgroundColor(ContextCompat.getColor(this.e, 2131101012));
return;
}
this.h.x.setTextColor(ContextCompat.getColor(this.e, 2131099901));
this.h.i.setTextColor(ContextCompat.getColor(this.e, 2131099901));
this.h.b.setTextColor(ContextCompat.getColor(this.e, 2131099901));
this.h.c.setTextColor(ContextCompat.getColor(this.e, 2131099901));
if (this.h.d.getVisibility() != 0) {
this.h.t.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232059));
} else {
this.h.t.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232084));
}
if (this.h.h.getVisibility() != 0) {
this.h.u.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232059));
} else {
this.h.u.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232084));
}
if (this.h.a.getVisibility() != 0) {
this.h.s.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232059));
} else {
this.h.s.setImageDrawable(ContextCompat.getDrawable(this.e, 2131232467));
}
this.h.i.setBackgroundColor(ContextCompat.getColor(this.e, 2131100185));
this.h.b.setBackgroundColor(ContextCompat.getColor(this.e, 2131100185));
this.h.c.setBackgroundColor(ContextCompat.getColor(this.e, 2131100185));
this.h.j.setBackgroundColor(ContextCompat.getColor(this.e, 2131100185));
this.h.o.setBackgroundColor(ContextCompat.getColor(this.e, 2131100185));
this.h.p.setBackgroundColor(ContextCompat.getColor(this.e, 2131100185));
this.h.h.setBackgroundColor(ContextCompat.getColor(this.e, 2131100186));
this.h.a.setBackgroundColor(ContextCompat.getColor(this.e, 2131100186));
this.h.d.setBackgroundColor(ContextCompat.getColor(this.e, 2131100186));
this.h.v.setBackgroundColor(ContextCompat.getColor(this.e, 2131101002));
}
public void w(ArrayList<INC> arrayList, ArrayList<INC> arrayList2, ArrayList<INC> arrayList3, ArrayList<INC> arrayList4, String str, String str2, String str3, String str4) {
this.h.h.removeAllViews();
s(this.h.h, str, str2, str3, str4);
ArrayList arrayList5 = new ArrayList();
if (arrayList != null && arrayList2 != null && arrayList.size() > arrayList2.size()) {
Iterator<INC> it = arrayList.iterator();
while (it.hasNext()) {
arrayList5.add(it.next().getDisplayName());
}
} else if (arrayList2 != null) {
Iterator<INC> it2 = arrayList2.iterator();
while (it2.hasNext()) {
arrayList5.add(it2.next().getDisplayName());
}
}
Iterator it3 = arrayList5.iterator();
boolean z = false;
int i = 0;
while (it3.hasNext()) {
String str5 = (String) it3.next();
LinearLayout linearLayout = (LinearLayout) LayoutInflater.from(this.e).inflate(2131624530, (ViewGroup) null, z);
TextView textView = (TextView) linearLayout.findViewById(R.id.tv_title);
TextView textView2 = (TextView) linearLayout.findViewById(2131431210);
TextView textView3 = (TextView) linearLayout.findViewById(2131431251);
TextView textView4 = (TextView) linearLayout.findViewById(2131431252);
TextView textView5 = (TextView) linearLayout.findViewById(2131431253);
View findViewById = linearLayout.findViewById(2131431935);
textView.setText(str5);
y(textView);
int i2 = 2131100223;
if (arrayList != null) {
Iterator<INC> it4 = arrayList.iterator();
while (it4.hasNext()) {
INC next = it4.next();
if (next.getDisplayName().equalsIgnoreCase(str5)) {
if (Double.parseDouble(next.getValue()) == -99999.99d) {
textView2.setText("-");
} else {
textView2.setText(k(next.getValue()));
}
if (next.getValue().contains("-")) {
textView2.setTextColor(this.e.getResources().getColor(2131100766));
} else {
textView2.setTextColor(this.e.getResources().getColor(i2));
}
}
i2 = 2131100223;
}
}
if (arrayList2 != null) {
Iterator<INC> it5 = arrayList2.iterator();
while (it5.hasNext()) {
INC next2 = it5.next();
if (next2.getDisplayName().equalsIgnoreCase(str5)) {
if (Double.parseDouble(next2.getValue()) == -99999.99d) {
textView3.setText("-");
} else {
textView3.setText(k(next2.getValue()));
}
if (next2.getValue().contains("-")) {
textView3.setTextColor(this.e.getResources().getColor(2131100766));
} else {
textView3.setTextColor(this.e.getResources().getColor(2131100223));
}
}
}
}
if (arrayList3 != null) {
Iterator<INC> it6 = arrayList3.iterator();
while (it6.hasNext()) {
INC next3 = it6.next();
if (next3.getDisplayName().equalsIgnoreCase(str5)) {
if (Double.parseDouble(next3.getValue()) == -99999.99d) {
textView4.setText("-");
} else {
textView4.setText(k(next3.getValue()));
}
if (next3.getValue().contains("-")) {
textView4.setTextColor(this.e.getResources().getColor(2131100766));
} else {
textView4.setTextColor(this.e.getResources().getColor(2131100223));
}
}
}
}
if (arrayList4 != null) {
Iterator<INC> it7 = arrayList4.iterator();
while (it7.hasNext()) {
INC next4 = it7.next();
if (next4.getDisplayName().equalsIgnoreCase(str5)) {
if (Double.parseDouble(next4.getValue()) == -99999.99d) {
textView5.setText("-");
} else {
textView5.setText(k(next4.getValue()));
}
if (next4.getValue().contains("-")) {
textView5.setTextColor(this.e.getResources().getColor(2131100766));
} else {
textView5.setTextColor(this.e.getResources().getColor(2131100223));
}
}
}
}
this.h.h.addView(linearLayout);
i++;
if (i == arrayList5.size()) {
findViewById.setVisibility(4);
}
z = false;
}
}
public void z() {
Root root;
Root root2;
Root root3;
Root root4;
try {
if (u == 0) {
root = this.o.getRoot().get(0);
root2 = this.o.getRoot().get(1);
root3 = this.o.getRoot().get(2);
root4 = this.o.getRoot().get(3);
} else {
if (this.o.getRoot() != null && !this.o.getRoot().isEmpty()) {
for (int i = 0; i < this.o.getRoot().size(); i++) {
if (this.o.getRoot().get(i).getType() != null && this.o.getRoot().get(i).getType().equalsIgnoreCase("Interim")) {
this.o.getRoot().get(i).setFiscalYear(f0.Q(this.o.getRoot().get(i).getEndDate()));
int i2 = i + 1;
this.o.getRoot().get(i2).setFiscalYear(f0.Q(this.o.getRoot().get(i2).getEndDate()));
int i3 = i + 2;
this.o.getRoot().get(i3).setFiscalYear(f0.Q(this.o.getRoot().get(i3).getEndDate()));
int i4 = i + 3;
this.o.getRoot().get(i4).setFiscalYear(f0.Q(this.o.getRoot().get(i4).getEndDate()));
root = this.o.getRoot().get(i);
root2 = this.o.getRoot().get(i2);
root3 = this.o.getRoot().get(i3);
root4 = this.o.getRoot().get(i4);
break;
}
}
}
root = null;
root2 = null;
root3 = null;
root4 = null;
}
if (root2 == null || root == null || root3 == null || root4 == null) {
return;
}
w(root.getStockFinancialMap().getiNC(), root2.getStockFinancialMap().getiNC(), root3.getStockFinancialMap().getiNC(), root4.getStockFinancialMap().getiNC(), root.getFiscalYear(), root2.getFiscalYear(), root3.getFiscalYear(), root4.getFiscalYear());
t(root.getStockFinancialMap().getbAL(), root2.getStockFinancialMap().getbAL(), root3.getStockFinancialMap().getbAL(), root4.getStockFinancialMap().getbAL(), root.getFiscalYear(), root2.getFiscalYear(), root3.getFiscalYear(), root4.getFiscalYear());
u(root.getStockFinancialMap().getcAS(), root2.getStockFinancialMap().getcAS(), root3.getStockFinancialMap().getcAS(), root4.getStockFinancialMap().getcAS(), root.getFiscalYear(), root2.getFiscalYear(), root3.getFiscalYear(), root4.getFiscalYear());
} catch (Exception e) {
e.printStackTrace();
}
}
}