中建乐购 v3.2.2版本的 MD5 值为:0553721e6bc6ba8dd67004696a555b81
以下内容为反编译后的 w.java 源代码,内容仅作参考
package com.shopex.westore.util;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.os.AsyncTask;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.shopex.westore.AgentApplication;
import com.shopex.westore.activity.AgentActivity;
import com.shopex.westore.activity.PrivacyActivity;
import com.shopex.westore.modle.AbnormalShape;
import com.shopex.westore.modle.AbnormalShapeList;
import com.shopex.westore.modle.Shortcut;
import com.shopex.westore.modle.ShortcutList;
import com.thirdbureau.activity.FanForumActivity;
import com.thirdbureau.bean.CommonType;
import com.thirdbureau.bean.Info;
import com.zjsjtz.ecstore.R;
import java.util.Hashtable;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import tv.danmaku.ijk.media.player.IjkMediaMeta;
public class w {
public static final int f10585a = 33;
static LinearLayout f10586b = null;
static RelativeLayout f10587c = null;
static Hashtable<String, Bitmap> f10588d = new Hashtable<>();
private static final int f10589e = 0;
private static final int f10590f = 1;
private static final int f10591g = 2;
private static final int f10592h = 3;
private static final int f10593i = 4;
private static final int f10594j = 1;
private static final int f10595k = 3;
private static final int f10596l = 5;
private static final int f10597m = 4;
private static final int f10598n = 2;
private static final int f10599o = 6;
private static final int f10600p = 7;
private static final int f10601q = 8;
private static final int f10602r = 9;
private static final int f10603s = 10;
private static final int f10604t = 11;
private static final int f10605u = 99;
private static final int f10606v = 30;
private static final int f10607w = 31;
private static final int f10608x = 32;
private static a f10609y;
private static Context f10610z;
public interface a {
void a();
}
public static float a(float f2, float f3) {
return f2 * f3;
}
public static View a(int i2, ViewGroup viewGroup, Context context) {
f10610z = context;
if (i2 != 99) {
switch (i2) {
case 1:
return new p().a(context);
case 2:
return LayoutInflater.from(context).inflate(R.layout.shortcut_entrance, (ViewGroup) null);
case 3:
new v();
return v.a(context);
case 4:
return new j().a(context, viewGroup);
case 5:
return new af().a(context);
case 6:
return LayoutInflater.from(context).inflate(R.layout.abnormalsharp_hot_item, (ViewGroup) null);
case 7:
return LayoutInflater.from(context).inflate(R.layout.abnormalsharp_benefits_item, (ViewGroup) null);
case 8:
return LayoutInflater.from(context).inflate(R.layout.abnormalsharp_theme_item, (ViewGroup) null);
case 9:
return LayoutInflater.from(context).inflate(R.layout.abnormalsharp_feature_item, (ViewGroup) null);
case 10:
return LayoutInflater.from(context).inflate(R.layout.abnormalsharp_brand_item, (ViewGroup) null);
case 11:
return LayoutInflater.from(context).inflate(R.layout.layout_common_type, viewGroup, false);
default:
switch (i2) {
case 30:
return new q().a(context);
case 31:
return LayoutInflater.from(context).inflate(R.layout.shortcut_entrance, (ViewGroup) null);
case 32:
new MainHouseNewsUtils();
return MainHouseNewsUtils.a(context);
case 33:
new MainHouseProductsUtils();
return MainHouseProductsUtils.a(context);
default:
return null;
}
}
}
return LayoutInflater.from(context).inflate(R.layout.main_page_bottom, viewGroup, false);
}
public void a(a aVar) {
f10609y = aVar;
}
public static void a(Context context, String str, View view) {
bo.c.a(str, (ImageView) view.findViewById(R.id.goods_imagevie));
}
public static void a(String str, double d2, String str2, View view) {
float c2 = cv.n.c();
ImageView imageView = (ImageView) view.findViewById(R.id.one_good_imageview);
LinearLayout linearLayout = (LinearLayout) view.findViewById(R.id.two_good_linearlayout);
LinearLayout linearLayout2 = (LinearLayout) view.findViewById(R.id.three_good_linearlayout);
try {
if (TextUtils.isEmpty(str)) {
return;
}
CommonType commonType = (CommonType) cv.i.a(new JSONObject(str).optString("data"), (Class<Object>) CommonType.class);
if (commonType.totalSize == 1) {
a((View) imageView, str2);
final Info info = commonType.info.get(0);
a(imageView);
b(linearLayout);
b(linearLayout2);
imageView.setBackground(null);
a(imageView, a(c2, (float) d2));
bo.c.b(info.item_img, imageView);
imageView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(Info.this.link_type, Info.this.item_title, Info.this.link_url, Info.this.module_id, Info.this.id);
}
});
} else if (commonType.totalSize == 2) {
a(linearLayout, str2);
ImageView imageView2 = (ImageView) linearLayout.findViewById(R.id.good1_imageview);
ImageView imageView3 = (ImageView) linearLayout.findViewById(R.id.good2_imageview);
b(imageView3, str2);
final Info info2 = commonType.info.get(0);
final Info info3 = commonType.info.get(1);
a(linearLayout);
b(imageView);
b(linearLayout2);
a(linearLayout, a(c2, (float) d2));
bo.c.b(info2.item_img, imageView2);
bo.c.b(info3.item_img, imageView3);
imageView2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(Info.this.link_type, Info.this.item_title, Info.this.link_url, Info.this.module_id, Info.this.id);
}
});
imageView3.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(Info.this.link_type, Info.this.item_title, Info.this.link_url, Info.this.module_id, Info.this.id);
}
});
} else if (commonType.totalSize == 3) {
a(linearLayout2, str2);
ImageView imageView4 = (ImageView) linearLayout2.findViewById(R.id.good_imageview1);
ImageView imageView5 = (ImageView) linearLayout2.findViewById(R.id.good_imageview2);
ImageView imageView6 = (ImageView) linearLayout2.findViewById(R.id.good_imageview3);
b((LinearLayout) linearLayout2.findViewById(R.id.two_good_imageview_linearlayout), str2);
c(imageView6, str2);
final Info info4 = commonType.info.get(0);
final Info info5 = commonType.info.get(1);
final Info info6 = commonType.info.get(2);
a(linearLayout2);
b(linearLayout);
b(imageView);
a(linearLayout2, a(c2, (float) d2));
bo.c.b(info4.item_img, imageView4);
bo.c.b(info5.item_img, imageView5);
bo.c.b(info6.item_img, imageView6);
imageView4.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(Info.this.link_type, Info.this.item_title, Info.this.link_url, Info.this.module_id, Info.this.id);
}
});
imageView5.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(Info.this.link_type, Info.this.item_title, Info.this.link_url, Info.this.module_id, Info.this.id);
}
});
imageView6.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(Info.this.link_type, Info.this.item_title, Info.this.link_url, Info.this.module_id, Info.this.id);
}
});
}
} catch (JSONException e2) {
e2.printStackTrace();
}
}
public static void a(View view) {
view.setVisibility(0);
}
public static void b(View view) {
view.setVisibility(8);
}
public static void a(View view, float f2) {
ViewGroup.LayoutParams layoutParams = view.getLayoutParams();
layoutParams.height = (int) f2;
view.setLayoutParams(layoutParams);
}
public static void b(String str, double d2, String str2, View view) {
try {
ImageView imageView = (ImageView) view.findViewById(R.id.big_title_imageview);
a((View) imageView, str2);
a(imageView, (float) d2);
bo.c.a(((CommonType) cv.i.a(new JSONObject(str).optString("data"), (Class<Object>) CommonType.class)).info.get(0).item_img, imageView);
} catch (JSONException e2) {
e2.printStackTrace();
}
}
public static void a(View view, String str) {
String[] split = str.split(",");
int parseInt = Integer.parseInt(split[1]);
int parseInt2 = Integer.parseInt(split[0]);
int parseInt3 = Integer.parseInt(split[3]);
int parseInt4 = Integer.parseInt(split[2]);
LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) view.getLayoutParams();
layoutParams.setMargins(parseInt, parseInt2, parseInt3, parseInt4);
view.setLayoutParams(layoutParams);
}
public static void b(View view, String str) {
int parseInt = Integer.parseInt(str.split(",")[4]);
LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) view.getLayoutParams();
layoutParams.setMargins(parseInt, 0, 0, 0);
view.setLayoutParams(layoutParams);
}
public static void c(View view, String str) {
int parseInt = Integer.parseInt(str.split(",")[4]);
LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) view.getLayoutParams();
layoutParams.setMargins(0, parseInt, 0, 0);
view.setLayoutParams(layoutParams);
}
public static void a(final String str, View view, int i2, Context context, String str2, double d2, String str3, String str4, String str5, int i3, String str6, String str7, String str8) {
ImageView imageView;
JSONObject jSONObject;
AbnormalShapeList abnormalShapeList;
LinearLayout linearLayout;
LinearLayout linearLayout2;
ImageView imageView2;
ImageView imageView3;
LinearLayout linearLayout3;
LinearLayout linearLayout4;
TextView textView;
TextView textView2;
ImageView imageView4;
ImageView imageView5;
LinearLayout linearLayout5;
LinearLayout linearLayout6;
TextView textView3;
TextView textView4;
ImageView imageView6;
LinearLayout linearLayout7;
ImageView imageView7;
LinearLayout linearLayout8;
TextView textView5;
TextView textView6;
ImageView imageView8;
LinearLayout linearLayout9;
ImageView imageView9;
LinearLayout linearLayout10;
TextView textView7;
TextView textView8;
ImageView imageView10;
LinearLayout linearLayout11;
ImageView imageView11;
LinearLayout linearLayout12;
TextView textView9;
TextView textView10;
ImageView imageView12;
AbnormalShapeList abnormalShapeList2;
LinearLayout linearLayout13;
LinearLayout linearLayout14;
TextView textView11;
TextView textView12;
ImageView imageView13;
f10586b = (LinearLayout) view.findViewById(R.id.look_more);
if (str8.equals("true")) {
f10586b.setVisibility(0);
}
f10587c = (RelativeLayout) view.findViewById(R.id.isshow_title);
if (str7.equals("false")) {
f10587c.setVisibility(8);
}
TextView textView13 = (TextView) view.findViewById(R.id.title);
ImageView imageView14 = (ImageView) view.findViewById(R.id.image_icon);
ImageView imageView15 = (ImageView) view.findViewById(R.id.image);
if (str3 != null) {
textView13.setText(str3);
}
if (str5 != null) {
textView13.setTextColor(Color.parseColor(str5));
imageView14.setBackgroundColor(Color.parseColor(str5));
}
if (str4 != null && !TextUtils.isEmpty(str4)) {
bo.c.a(str4, imageView15);
} else {
imageView15.setVisibility(8);
}
LinearLayout linearLayout15 = (LinearLayout) view.findViewById(R.id.module_0);
LinearLayout linearLayout16 = (LinearLayout) view.findViewById(R.id.module_1);
TextView textView14 = (TextView) view.findViewById(R.id.title_0);
TextView textView15 = (TextView) view.findViewById(R.id.content_0);
ImageView imageView16 = (ImageView) view.findViewById(R.id.image_0);
LinearLayout linearLayout17 = (LinearLayout) view.findViewById(R.id.module_8);
TextView textView16 = (TextView) view.findViewById(R.id.title_1);
LinearLayout linearLayout18 = (LinearLayout) view.findViewById(R.id.module_7);
TextView textView17 = (TextView) view.findViewById(R.id.content_1);
LinearLayout linearLayout19 = (LinearLayout) view.findViewById(R.id.module_6);
ImageView imageView17 = (ImageView) view.findViewById(R.id.image_1);
LinearLayout linearLayout20 = (LinearLayout) view.findViewById(R.id.module_5);
TextView textView18 = (TextView) view.findViewById(R.id.title_2);
LinearLayout linearLayout21 = (LinearLayout) view.findViewById(R.id.module_4);
TextView textView19 = (TextView) view.findViewById(R.id.content_2);
LinearLayout linearLayout22 = (LinearLayout) view.findViewById(R.id.module_3);
ImageView imageView18 = (ImageView) view.findViewById(R.id.image_2);
LinearLayout linearLayout23 = (LinearLayout) view.findViewById(R.id.module_2);
TextView textView20 = (TextView) view.findViewById(R.id.title_3);
TextView textView21 = (TextView) view.findViewById(R.id.content_3);
ImageView imageView19 = (ImageView) view.findViewById(R.id.image_3);
TextView textView22 = (TextView) view.findViewById(R.id.title_4);
TextView textView23 = (TextView) view.findViewById(R.id.content_4);
ImageView imageView20 = (ImageView) view.findViewById(R.id.image_4);
TextView textView24 = (TextView) view.findViewById(R.id.title_5);
TextView textView25 = (TextView) view.findViewById(R.id.content_5);
ImageView imageView21 = (ImageView) view.findViewById(R.id.image_5);
TextView textView26 = (TextView) view.findViewById(R.id.title_6);
TextView textView27 = (TextView) view.findViewById(R.id.content_6);
ImageView imageView22 = (ImageView) view.findViewById(R.id.image_6);
TextView textView28 = (TextView) view.findViewById(R.id.title_7);
TextView textView29 = (TextView) view.findViewById(R.id.content_7);
ImageView imageView23 = (ImageView) view.findViewById(R.id.image_7);
TextView textView30 = (TextView) view.findViewById(R.id.title_8);
TextView textView31 = (TextView) view.findViewById(R.id.content_8);
ImageView imageView24 = (ImageView) view.findViewById(R.id.image_8);
try {
imageView = imageView24;
try {
jSONObject = new JSONObject(str2);
} catch (JSONException e2) {
e = e2;
e.printStackTrace();
jSONObject = null;
abnormalShapeList = (AbnormalShapeList) k.a(jSONObject.optString("data"), (Class<Object>) AbnormalShapeList.class);
if (abnormalShapeList != null) {
return;
}
return;
}
} catch (JSONException e3) {
e = e3;
imageView = imageView24;
}
abnormalShapeList = (AbnormalShapeList) k.a(jSONObject.optString("data"), (Class<Object>) AbnormalShapeList.class);
if (abnormalShapeList != null || abnormalShapeList.info == null || abnormalShapeList.info.size() <= 0) {
return;
}
ImageView imageView25 = imageView18;
final AbnormalShape abnormalShape = abnormalShapeList.info.get(0);
if (str8.equals("true")) {
f10586b.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.f10610z.startActivity(AgentActivity.a(w.f10610z, (int) AgentActivity.f8576f).putExtra("module_id", AbnormalShape.this.module_id).putExtra("isMore", true));
}
});
}
int i4 = 0;
while (i4 < abnormalShapeList.info.size()) {
if (i4 == 0) {
final AbnormalShape abnormalShape2 = abnormalShapeList.info.get(i4);
textView14.setText(abnormalShapeList.info.get(i4).item_title);
textView15.setText(abnormalShapeList.info.get(i4).item_des);
bo.c.a(abnormalShapeList.info.get(i4).item_img, imageView16);
linearLayout15.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
});
}
if (i4 == 1) {
final AbnormalShape abnormalShape3 = abnormalShapeList.info.get(i4);
textView16.setText(abnormalShape3.item_title);
textView17.setText(abnormalShape3.item_des);
bo.c.a(abnormalShape3.item_img, imageView17);
linearLayout16.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
});
}
if (i4 == 2) {
final AbnormalShape abnormalShape4 = abnormalShapeList.info.get(i4);
textView18.setText(abnormalShape4.item_title);
textView19.setText(abnormalShape4.item_des);
linearLayout = linearLayout15;
imageView2 = imageView25;
bo.c.a(abnormalShape4.item_img, imageView2);
View.OnClickListener onClickListener = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout2 = linearLayout23;
linearLayout2.setOnClickListener(onClickListener);
} else {
linearLayout = linearLayout15;
linearLayout2 = linearLayout23;
imageView2 = imageView25;
}
if (i4 == 3) {
final AbnormalShape abnormalShape5 = abnormalShapeList.info.get(i4);
imageView3 = imageView2;
linearLayout3 = linearLayout16;
TextView textView32 = textView20;
textView32.setText(abnormalShape5.item_title);
textView = textView32;
TextView textView33 = textView21;
textView33.setText(abnormalShape5.item_des);
textView2 = textView33;
imageView4 = imageView19;
bo.c.a(abnormalShape5.item_img, imageView4);
View.OnClickListener onClickListener2 = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout4 = linearLayout22;
linearLayout4.setOnClickListener(onClickListener2);
} else {
imageView3 = imageView2;
linearLayout3 = linearLayout16;
linearLayout4 = linearLayout22;
textView = textView20;
textView2 = textView21;
imageView4 = imageView19;
}
if (i4 == 4) {
final AbnormalShape abnormalShape6 = abnormalShapeList.info.get(i4);
imageView5 = imageView4;
linearLayout5 = linearLayout2;
TextView textView34 = textView22;
textView34.setText(abnormalShape6.item_title);
textView3 = textView34;
TextView textView35 = textView23;
textView35.setText(abnormalShape6.item_des);
textView4 = textView35;
imageView6 = imageView20;
bo.c.a(abnormalShape6.item_img, imageView6);
View.OnClickListener onClickListener3 = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout6 = linearLayout21;
linearLayout6.setOnClickListener(onClickListener3);
} else {
imageView5 = imageView4;
linearLayout5 = linearLayout2;
linearLayout6 = linearLayout21;
textView3 = textView22;
textView4 = textView23;
imageView6 = imageView20;
}
if (i4 == 5) {
final AbnormalShape abnormalShape7 = abnormalShapeList.info.get(i4);
linearLayout7 = linearLayout6;
imageView7 = imageView6;
TextView textView36 = textView24;
textView36.setText(abnormalShapeList.info.get(i4).item_title);
textView5 = textView36;
TextView textView37 = textView25;
textView37.setText(abnormalShapeList.info.get(i4).item_des);
textView6 = textView37;
imageView8 = imageView21;
bo.c.a(abnormalShapeList.info.get(i4).item_img, imageView8);
View.OnClickListener onClickListener4 = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout8 = linearLayout20;
linearLayout8.setOnClickListener(onClickListener4);
} else {
linearLayout7 = linearLayout6;
imageView7 = imageView6;
linearLayout8 = linearLayout20;
textView5 = textView24;
textView6 = textView25;
imageView8 = imageView21;
}
if (i4 == 6) {
final AbnormalShape abnormalShape8 = abnormalShapeList.info.get(i4);
linearLayout9 = linearLayout8;
imageView9 = imageView8;
TextView textView38 = textView26;
textView38.setText(abnormalShape8.item_title);
textView7 = textView38;
TextView textView39 = textView27;
textView39.setText(abnormalShape8.item_des);
textView8 = textView39;
imageView10 = imageView22;
bo.c.a(abnormalShape8.item_img, imageView10);
View.OnClickListener onClickListener5 = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout10 = linearLayout19;
linearLayout10.setOnClickListener(onClickListener5);
} else {
linearLayout9 = linearLayout8;
imageView9 = imageView8;
linearLayout10 = linearLayout19;
textView7 = textView26;
textView8 = textView27;
imageView10 = imageView22;
}
if (i4 == 7) {
final AbnormalShape abnormalShape9 = abnormalShapeList.info.get(i4);
linearLayout11 = linearLayout10;
imageView11 = imageView10;
TextView textView40 = textView28;
textView40.setText(abnormalShape9.item_title);
textView9 = textView40;
TextView textView41 = textView29;
textView41.setText(abnormalShape9.item_des);
textView10 = textView41;
imageView12 = imageView23;
bo.c.a(abnormalShape9.item_img, imageView12);
View.OnClickListener onClickListener6 = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout12 = linearLayout18;
linearLayout12.setOnClickListener(onClickListener6);
} else {
linearLayout11 = linearLayout10;
imageView11 = imageView10;
linearLayout12 = linearLayout18;
textView9 = textView28;
textView10 = textView29;
imageView12 = imageView23;
}
if (i4 == 8) {
final AbnormalShape abnormalShape10 = abnormalShapeList.info.get(i4);
abnormalShapeList2 = abnormalShapeList;
linearLayout13 = linearLayout12;
TextView textView42 = textView30;
textView42.setText(abnormalShape10.item_title);
textView11 = textView42;
TextView textView43 = textView31;
textView43.setText(abnormalShape10.item_des);
textView12 = textView43;
imageView13 = imageView;
bo.c.a(abnormalShape10.item_img, imageView13);
View.OnClickListener onClickListener7 = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout14 = linearLayout17;
linearLayout14.setOnClickListener(onClickListener7);
} else {
abnormalShapeList2 = abnormalShapeList;
linearLayout13 = linearLayout12;
linearLayout14 = linearLayout17;
textView11 = textView30;
textView12 = textView31;
imageView13 = imageView;
}
i4++;
linearLayout17 = linearLayout14;
imageView = imageView13;
imageView23 = imageView12;
linearLayout22 = linearLayout4;
linearLayout15 = linearLayout;
imageView25 = imageView3;
linearLayout16 = linearLayout3;
textView20 = textView;
textView21 = textView2;
imageView19 = imageView5;
linearLayout23 = linearLayout5;
textView22 = textView3;
textView23 = textView4;
linearLayout21 = linearLayout7;
imageView20 = imageView7;
textView24 = textView5;
textView25 = textView6;
linearLayout20 = linearLayout9;
imageView21 = imageView9;
textView26 = textView7;
textView27 = textView8;
linearLayout19 = linearLayout11;
imageView22 = imageView11;
textView28 = textView9;
textView29 = textView10;
abnormalShapeList = abnormalShapeList2;
linearLayout18 = linearLayout13;
textView30 = textView11;
textView31 = textView12;
}
}
public static void b(final String str, View view, int i2, Context context, String str2, double d2, String str3, String str4, String str5, int i3, String str6, String str7, String str8) {
ImageView imageView;
JSONObject jSONObject;
AbnormalShapeList abnormalShapeList;
LinearLayout linearLayout;
LinearLayout linearLayout2;
ImageView imageView2;
ImageView imageView3;
LinearLayout linearLayout3;
LinearLayout linearLayout4;
TextView textView;
TextView textView2;
ImageView imageView4;
ImageView imageView5;
LinearLayout linearLayout5;
LinearLayout linearLayout6;
TextView textView3;
TextView textView4;
ImageView imageView6;
LinearLayout linearLayout7;
ImageView imageView7;
LinearLayout linearLayout8;
TextView textView5;
TextView textView6;
ImageView imageView8;
AbnormalShapeList abnormalShapeList2;
LinearLayout linearLayout9;
LinearLayout linearLayout10;
TextView textView7;
TextView textView8;
ImageView imageView9;
f10586b = (LinearLayout) view.findViewById(R.id.look_more);
if (str8.equals("true")) {
f10586b.setVisibility(0);
}
f10587c = (RelativeLayout) view.findViewById(R.id.isshow_title);
if (str7.equals("false")) {
f10587c.setVisibility(8);
}
TextView textView9 = (TextView) view.findViewById(R.id.title);
ImageView imageView10 = (ImageView) view.findViewById(R.id.image_icon);
ImageView imageView11 = (ImageView) view.findViewById(R.id.image);
if (str3 != null) {
textView9.setText(str3);
}
if (str5 != null) {
textView9.setTextColor(Color.parseColor(str5));
imageView10.setBackgroundColor(Color.parseColor(str5));
}
if (str4 != null && !TextUtils.isEmpty(str4)) {
bo.c.a(str4, imageView11);
} else {
imageView11.setVisibility(8);
}
LinearLayout linearLayout11 = (LinearLayout) view.findViewById(R.id.module_0);
LinearLayout linearLayout12 = (LinearLayout) view.findViewById(R.id.module_1);
TextView textView10 = (TextView) view.findViewById(R.id.title_0);
TextView textView11 = (TextView) view.findViewById(R.id.content_0);
ImageView imageView12 = (ImageView) view.findViewById(R.id.image_0);
TextView textView12 = (TextView) view.findViewById(R.id.title_1);
TextView textView13 = (TextView) view.findViewById(R.id.content_1);
LinearLayout linearLayout13 = (LinearLayout) view.findViewById(R.id.module_6);
ImageView imageView13 = (ImageView) view.findViewById(R.id.image_1);
LinearLayout linearLayout14 = (LinearLayout) view.findViewById(R.id.module_5);
TextView textView14 = (TextView) view.findViewById(R.id.title_2);
LinearLayout linearLayout15 = (LinearLayout) view.findViewById(R.id.module_4);
TextView textView15 = (TextView) view.findViewById(R.id.content_2);
LinearLayout linearLayout16 = (LinearLayout) view.findViewById(R.id.module_3);
ImageView imageView14 = (ImageView) view.findViewById(R.id.image_2);
LinearLayout linearLayout17 = (LinearLayout) view.findViewById(R.id.module_2);
TextView textView16 = (TextView) view.findViewById(R.id.title_3);
TextView textView17 = (TextView) view.findViewById(R.id.content_3);
ImageView imageView15 = (ImageView) view.findViewById(R.id.image_3);
TextView textView18 = (TextView) view.findViewById(R.id.title_4);
TextView textView19 = (TextView) view.findViewById(R.id.content_4);
ImageView imageView16 = (ImageView) view.findViewById(R.id.image_4);
TextView textView20 = (TextView) view.findViewById(R.id.title_5);
TextView textView21 = (TextView) view.findViewById(R.id.content_5);
ImageView imageView17 = (ImageView) view.findViewById(R.id.image_5);
TextView textView22 = (TextView) view.findViewById(R.id.title_6);
TextView textView23 = (TextView) view.findViewById(R.id.content_6);
ImageView imageView18 = (ImageView) view.findViewById(R.id.image_6);
try {
imageView = imageView18;
try {
jSONObject = new JSONObject(str2);
} catch (JSONException e2) {
e = e2;
e.printStackTrace();
jSONObject = null;
abnormalShapeList = (AbnormalShapeList) k.a(jSONObject.optString("data"), (Class<Object>) AbnormalShapeList.class);
if (abnormalShapeList != null) {
return;
}
return;
}
} catch (JSONException e3) {
e = e3;
imageView = imageView18;
}
abnormalShapeList = (AbnormalShapeList) k.a(jSONObject.optString("data"), (Class<Object>) AbnormalShapeList.class);
if (abnormalShapeList != null || abnormalShapeList.info == null || abnormalShapeList.info.size() <= 0) {
return;
}
ImageView imageView19 = imageView14;
final AbnormalShape abnormalShape = abnormalShapeList.info.get(0);
if (str8.equals("true")) {
f10586b.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.f10610z.startActivity(AgentActivity.a(w.f10610z, (int) AgentActivity.f8576f).putExtra("module_id", AbnormalShape.this.module_id).putExtra("isMore", true));
}
});
}
int i4 = 0;
while (i4 < abnormalShapeList.info.size()) {
if (i4 == 0) {
final AbnormalShape abnormalShape2 = abnormalShapeList.info.get(i4);
textView10.setText(abnormalShape2.item_title);
textView11.setText(abnormalShape2.item_des);
bo.c.a(abnormalShape2.item_img, imageView12);
linearLayout11.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
});
}
if (i4 == 1) {
final AbnormalShape abnormalShape3 = abnormalShapeList.info.get(i4);
textView12.setText(abnormalShape3.item_title);
textView13.setText(abnormalShape3.item_des);
bo.c.a(abnormalShape3.item_img, imageView13);
linearLayout12.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
});
}
if (i4 == 2) {
final AbnormalShape abnormalShape4 = abnormalShapeList.info.get(i4);
textView14.setText(abnormalShape4.item_title);
textView15.setText(abnormalShape4.item_des);
linearLayout = linearLayout11;
imageView2 = imageView19;
bo.c.a(abnormalShape4.item_img, imageView2);
View.OnClickListener onClickListener = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout2 = linearLayout17;
linearLayout2.setOnClickListener(onClickListener);
} else {
linearLayout = linearLayout11;
linearLayout2 = linearLayout17;
imageView2 = imageView19;
}
if (i4 == 3) {
final AbnormalShape abnormalShape5 = abnormalShapeList.info.get(i4);
imageView3 = imageView2;
linearLayout3 = linearLayout12;
TextView textView24 = textView16;
textView24.setText(abnormalShape5.item_title);
textView = textView24;
TextView textView25 = textView17;
textView25.setText(abnormalShape5.item_des);
textView2 = textView25;
imageView4 = imageView15;
bo.c.a(abnormalShape5.item_img, imageView4);
View.OnClickListener onClickListener2 = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout4 = linearLayout16;
linearLayout4.setOnClickListener(onClickListener2);
} else {
imageView3 = imageView2;
linearLayout3 = linearLayout12;
linearLayout4 = linearLayout16;
textView = textView16;
textView2 = textView17;
imageView4 = imageView15;
}
if (i4 == 4) {
final AbnormalShape abnormalShape6 = abnormalShapeList.info.get(i4);
imageView5 = imageView4;
linearLayout5 = linearLayout2;
TextView textView26 = textView18;
textView26.setText(abnormalShape6.item_title);
textView3 = textView26;
TextView textView27 = textView19;
textView27.setText(abnormalShape6.item_des);
textView4 = textView27;
imageView6 = imageView16;
bo.c.a(abnormalShape6.item_img, imageView6);
View.OnClickListener onClickListener3 = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout6 = linearLayout15;
linearLayout6.setOnClickListener(onClickListener3);
} else {
imageView5 = imageView4;
linearLayout5 = linearLayout2;
linearLayout6 = linearLayout15;
textView3 = textView18;
textView4 = textView19;
imageView6 = imageView16;
}
if (i4 == 5) {
final AbnormalShape abnormalShape7 = abnormalShapeList.info.get(i4);
linearLayout7 = linearLayout6;
imageView7 = imageView6;
TextView textView28 = textView20;
textView28.setText(abnormalShape7.item_title);
textView5 = textView28;
TextView textView29 = textView21;
textView29.setText(abnormalShape7.item_des);
textView6 = textView29;
imageView8 = imageView17;
bo.c.a(abnormalShape7.item_img, imageView8);
View.OnClickListener onClickListener4 = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout8 = linearLayout14;
linearLayout8.setOnClickListener(onClickListener4);
} else {
linearLayout7 = linearLayout6;
imageView7 = imageView6;
linearLayout8 = linearLayout14;
textView5 = textView20;
textView6 = textView21;
imageView8 = imageView17;
}
if (i4 == 6) {
final AbnormalShape abnormalShape8 = abnormalShapeList.info.get(i4);
abnormalShapeList2 = abnormalShapeList;
linearLayout9 = linearLayout8;
TextView textView30 = textView22;
textView30.setText(abnormalShape8.item_title);
textView7 = textView30;
TextView textView31 = textView23;
textView31.setText(abnormalShape8.item_des);
textView8 = textView31;
imageView9 = imageView;
bo.c.a(abnormalShape8.item_img, imageView9);
View.OnClickListener onClickListener5 = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout10 = linearLayout13;
linearLayout10.setOnClickListener(onClickListener5);
} else {
abnormalShapeList2 = abnormalShapeList;
linearLayout9 = linearLayout8;
linearLayout10 = linearLayout13;
textView7 = textView22;
textView8 = textView23;
imageView9 = imageView;
}
i4++;
linearLayout13 = linearLayout10;
imageView = imageView9;
imageView17 = imageView8;
linearLayout16 = linearLayout4;
linearLayout11 = linearLayout;
imageView19 = imageView3;
linearLayout12 = linearLayout3;
textView16 = textView;
textView17 = textView2;
imageView15 = imageView5;
linearLayout17 = linearLayout5;
textView18 = textView3;
textView19 = textView4;
linearLayout15 = linearLayout7;
imageView16 = imageView7;
textView20 = textView5;
textView21 = textView6;
abnormalShapeList = abnormalShapeList2;
linearLayout14 = linearLayout9;
textView22 = textView7;
textView23 = textView8;
}
}
public static void c(final String str, View view, int i2, Context context, String str2, double d2, String str3, String str4, String str5, int i3, String str6, String str7, String str8) {
ImageView imageView;
JSONObject jSONObject;
AbnormalShapeList abnormalShapeList;
LinearLayout linearLayout;
LinearLayout linearLayout2;
ImageView imageView2;
ImageView imageView3;
LinearLayout linearLayout3;
LinearLayout linearLayout4;
TextView textView;
TextView textView2;
ImageView imageView4;
ImageView imageView5;
LinearLayout linearLayout5;
LinearLayout linearLayout6;
TextView textView3;
TextView textView4;
ImageView imageView6;
LinearLayout linearLayout7;
ImageView imageView7;
LinearLayout linearLayout8;
TextView textView5;
TextView textView6;
ImageView imageView8;
LinearLayout linearLayout9;
ImageView imageView9;
LinearLayout linearLayout10;
TextView textView7;
TextView textView8;
ImageView imageView10;
AbnormalShapeList abnormalShapeList2;
LinearLayout linearLayout11;
LinearLayout linearLayout12;
TextView textView9;
TextView textView10;
ImageView imageView11;
f10586b = (LinearLayout) view.findViewById(R.id.look_more);
if (str8.equals("true")) {
f10586b.setVisibility(0);
}
f10587c = (RelativeLayout) view.findViewById(R.id.isshow_title);
if (str7.equals("false")) {
f10587c.setVisibility(8);
}
TextView textView11 = (TextView) view.findViewById(R.id.title);
ImageView imageView12 = (ImageView) view.findViewById(R.id.image_icon);
ImageView imageView13 = (ImageView) view.findViewById(R.id.image);
if (str3 != null) {
textView11.setText(str3);
}
if (str5 != null) {
textView11.setTextColor(Color.parseColor(str5));
imageView12.setBackgroundColor(Color.parseColor(str5));
}
if (str4 != null && !TextUtils.isEmpty(str4)) {
bo.c.a(str4, imageView13);
} else {
imageView13.setVisibility(8);
}
LinearLayout linearLayout13 = (LinearLayout) view.findViewById(R.id.module_0);
LinearLayout linearLayout14 = (LinearLayout) view.findViewById(R.id.module_1);
TextView textView12 = (TextView) view.findViewById(R.id.title_0);
TextView textView13 = (TextView) view.findViewById(R.id.content_0);
ImageView imageView14 = (ImageView) view.findViewById(R.id.image_0);
TextView textView14 = (TextView) view.findViewById(R.id.title_1);
LinearLayout linearLayout15 = (LinearLayout) view.findViewById(R.id.module_7);
TextView textView15 = (TextView) view.findViewById(R.id.content_1);
LinearLayout linearLayout16 = (LinearLayout) view.findViewById(R.id.module_6);
ImageView imageView15 = (ImageView) view.findViewById(R.id.image_1);
LinearLayout linearLayout17 = (LinearLayout) view.findViewById(R.id.module_5);
TextView textView16 = (TextView) view.findViewById(R.id.title_2);
LinearLayout linearLayout18 = (LinearLayout) view.findViewById(R.id.module_4);
TextView textView17 = (TextView) view.findViewById(R.id.content_2);
LinearLayout linearLayout19 = (LinearLayout) view.findViewById(R.id.module_3);
ImageView imageView16 = (ImageView) view.findViewById(R.id.image_2);
LinearLayout linearLayout20 = (LinearLayout) view.findViewById(R.id.module_2);
TextView textView18 = (TextView) view.findViewById(R.id.title_3);
TextView textView19 = (TextView) view.findViewById(R.id.content_3);
ImageView imageView17 = (ImageView) view.findViewById(R.id.image_3);
TextView textView20 = (TextView) view.findViewById(R.id.title_4);
TextView textView21 = (TextView) view.findViewById(R.id.content_4);
ImageView imageView18 = (ImageView) view.findViewById(R.id.image_4);
TextView textView22 = (TextView) view.findViewById(R.id.title_5);
TextView textView23 = (TextView) view.findViewById(R.id.content_5);
ImageView imageView19 = (ImageView) view.findViewById(R.id.image_5);
TextView textView24 = (TextView) view.findViewById(R.id.title_6);
TextView textView25 = (TextView) view.findViewById(R.id.content_6);
ImageView imageView20 = (ImageView) view.findViewById(R.id.image_6);
TextView textView26 = (TextView) view.findViewById(R.id.title_7);
TextView textView27 = (TextView) view.findViewById(R.id.content_7);
ImageView imageView21 = (ImageView) view.findViewById(R.id.image_7);
try {
imageView = imageView21;
} catch (JSONException e2) {
e = e2;
imageView = imageView21;
}
try {
jSONObject = new JSONObject(str2);
} catch (JSONException e3) {
e = e3;
e.printStackTrace();
jSONObject = null;
abnormalShapeList = (AbnormalShapeList) k.a(jSONObject.optString("data"), (Class<Object>) AbnormalShapeList.class);
if (abnormalShapeList != null) {
return;
}
return;
}
abnormalShapeList = (AbnormalShapeList) k.a(jSONObject.optString("data"), (Class<Object>) AbnormalShapeList.class);
if (abnormalShapeList != null || abnormalShapeList.info == null || abnormalShapeList.info.size() <= 0) {
return;
}
ImageView imageView22 = imageView16;
final AbnormalShape abnormalShape = abnormalShapeList.info.get(0);
if (str8.equals("true")) {
f10586b.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.f10610z.startActivity(AgentActivity.a(w.f10610z, (int) AgentActivity.f8576f).putExtra("module_id", AbnormalShape.this.module_id).putExtra("isMore", true));
}
});
}
int i4 = 0;
while (i4 < abnormalShapeList.info.size()) {
if (i4 == 0) {
final AbnormalShape abnormalShape2 = abnormalShapeList.info.get(i4);
textView12.setText(abnormalShape2.item_title);
textView13.setText(abnormalShape2.item_des);
bo.c.a(abnormalShape2.item_img, imageView14);
linearLayout13.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
});
}
if (i4 == 1) {
final AbnormalShape abnormalShape3 = abnormalShapeList.info.get(i4);
textView14.setText(abnormalShape3.item_title);
textView15.setText(abnormalShape3.item_des);
bo.c.a(abnormalShape3.item_img, imageView15);
linearLayout14.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
});
}
if (i4 == 2) {
final AbnormalShape abnormalShape4 = abnormalShapeList.info.get(i4);
textView16.setText(abnormalShape4.item_title);
textView17.setText(abnormalShape4.item_des);
linearLayout = linearLayout13;
imageView2 = imageView22;
bo.c.a(abnormalShape4.item_img, imageView2);
View.OnClickListener onClickListener = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout2 = linearLayout20;
linearLayout2.setOnClickListener(onClickListener);
} else {
linearLayout = linearLayout13;
linearLayout2 = linearLayout20;
imageView2 = imageView22;
}
if (i4 == 3) {
final AbnormalShape abnormalShape5 = abnormalShapeList.info.get(i4);
imageView3 = imageView2;
linearLayout3 = linearLayout14;
TextView textView28 = textView18;
textView28.setText(abnormalShape5.item_title);
textView = textView28;
TextView textView29 = textView19;
textView29.setText(abnormalShape5.item_des);
textView2 = textView29;
imageView4 = imageView17;
bo.c.a(abnormalShape5.item_img, imageView4);
View.OnClickListener onClickListener2 = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout4 = linearLayout19;
linearLayout4.setOnClickListener(onClickListener2);
} else {
imageView3 = imageView2;
linearLayout3 = linearLayout14;
linearLayout4 = linearLayout19;
textView = textView18;
textView2 = textView19;
imageView4 = imageView17;
}
if (i4 == 4) {
final AbnormalShape abnormalShape6 = abnormalShapeList.info.get(i4);
imageView5 = imageView4;
linearLayout5 = linearLayout2;
TextView textView30 = textView20;
textView30.setText(abnormalShape6.item_title);
textView3 = textView30;
TextView textView31 = textView21;
textView31.setText(abnormalShape6.item_des);
textView4 = textView31;
imageView6 = imageView18;
bo.c.a(abnormalShape6.item_img, imageView6);
View.OnClickListener onClickListener3 = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout6 = linearLayout18;
linearLayout6.setOnClickListener(onClickListener3);
} else {
imageView5 = imageView4;
linearLayout5 = linearLayout2;
linearLayout6 = linearLayout18;
textView3 = textView20;
textView4 = textView21;
imageView6 = imageView18;
}
if (i4 == 5) {
final AbnormalShape abnormalShape7 = abnormalShapeList.info.get(i4);
linearLayout7 = linearLayout6;
imageView7 = imageView6;
TextView textView32 = textView22;
textView32.setText(abnormalShape7.item_title);
textView5 = textView32;
TextView textView33 = textView23;
textView33.setText(abnormalShape7.item_des);
textView6 = textView33;
imageView8 = imageView19;
bo.c.a(abnormalShape7.item_img, imageView8);
View.OnClickListener onClickListener4 = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout8 = linearLayout17;
linearLayout8.setOnClickListener(onClickListener4);
} else {
linearLayout7 = linearLayout6;
imageView7 = imageView6;
linearLayout8 = linearLayout17;
textView5 = textView22;
textView6 = textView23;
imageView8 = imageView19;
}
if (i4 == 6) {
final AbnormalShape abnormalShape8 = abnormalShapeList.info.get(i4);
linearLayout9 = linearLayout8;
imageView9 = imageView8;
TextView textView34 = textView24;
textView34.setText(abnormalShape8.item_title);
textView7 = textView34;
TextView textView35 = textView25;
textView35.setText(abnormalShape8.item_des);
textView8 = textView35;
imageView10 = imageView20;
bo.c.a(abnormalShape8.item_img, imageView10);
View.OnClickListener onClickListener5 = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout10 = linearLayout16;
linearLayout10.setOnClickListener(onClickListener5);
} else {
linearLayout9 = linearLayout8;
imageView9 = imageView8;
linearLayout10 = linearLayout16;
textView7 = textView24;
textView8 = textView25;
imageView10 = imageView20;
}
if (i4 == 7) {
final AbnormalShape abnormalShape9 = abnormalShapeList.info.get(i4);
abnormalShapeList2 = abnormalShapeList;
linearLayout11 = linearLayout10;
TextView textView36 = textView26;
textView36.setText(abnormalShape9.item_title);
textView9 = textView36;
TextView textView37 = textView27;
textView37.setText(abnormalShape9.item_des);
textView10 = textView37;
imageView11 = imageView;
bo.c.a(abnormalShape9.item_img, imageView11);
View.OnClickListener onClickListener6 = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout12 = linearLayout15;
linearLayout12.setOnClickListener(onClickListener6);
} else {
abnormalShapeList2 = abnormalShapeList;
linearLayout11 = linearLayout10;
linearLayout12 = linearLayout15;
textView9 = textView26;
textView10 = textView27;
imageView11 = imageView;
}
i4++;
imageView = imageView11;
linearLayout15 = linearLayout12;
imageView20 = imageView10;
linearLayout19 = linearLayout4;
linearLayout13 = linearLayout;
imageView22 = imageView3;
linearLayout14 = linearLayout3;
textView18 = textView;
textView19 = textView2;
imageView17 = imageView5;
linearLayout20 = linearLayout5;
textView20 = textView3;
textView21 = textView4;
linearLayout18 = linearLayout7;
imageView18 = imageView7;
textView22 = textView5;
textView23 = textView6;
linearLayout17 = linearLayout9;
imageView19 = imageView9;
textView24 = textView7;
textView25 = textView8;
abnormalShapeList = abnormalShapeList2;
linearLayout16 = linearLayout11;
textView26 = textView9;
textView27 = textView10;
}
}
public static void d(final String str, View view, int i2, Context context, String str2, double d2, String str3, String str4, String str5, int i3, String str6, String str7, String str8) {
ImageView imageView;
JSONObject jSONObject;
AbnormalShapeList abnormalShapeList;
LinearLayout linearLayout;
LinearLayout linearLayout2;
ImageView imageView2;
ImageView imageView3;
LinearLayout linearLayout3;
LinearLayout linearLayout4;
TextView textView;
TextView textView2;
ImageView imageView4;
ImageView imageView5;
LinearLayout linearLayout5;
LinearLayout linearLayout6;
TextView textView3;
TextView textView4;
ImageView imageView6;
LinearLayout linearLayout7;
ImageView imageView7;
LinearLayout linearLayout8;
TextView textView5;
TextView textView6;
ImageView imageView8;
LinearLayout linearLayout9;
ImageView imageView9;
LinearLayout linearLayout10;
TextView textView7;
TextView textView8;
ImageView imageView10;
AbnormalShapeList abnormalShapeList2;
LinearLayout linearLayout11;
LinearLayout linearLayout12;
TextView textView9;
TextView textView10;
ImageView imageView11;
f10586b = (LinearLayout) view.findViewById(R.id.look_more);
if (str8.equals("true")) {
f10586b.setVisibility(0);
}
f10587c = (RelativeLayout) view.findViewById(R.id.isshow_title);
if (str7.equals("false")) {
f10587c.setVisibility(8);
}
TextView textView11 = (TextView) view.findViewById(R.id.title);
ImageView imageView12 = (ImageView) view.findViewById(R.id.image_icon);
ImageView imageView13 = (ImageView) view.findViewById(R.id.image);
if (str3 != null) {
textView11.setText(str3);
}
if (str5 != null) {
textView11.setTextColor(Color.parseColor(str5));
imageView12.setBackgroundColor(Color.parseColor(str5));
}
if (str4 != null && !TextUtils.isEmpty(str4)) {
bo.c.a(str4, imageView13);
} else {
imageView13.setVisibility(8);
}
LinearLayout linearLayout13 = (LinearLayout) view.findViewById(R.id.module_0);
LinearLayout linearLayout14 = (LinearLayout) view.findViewById(R.id.module_1);
TextView textView12 = (TextView) view.findViewById(R.id.title_0);
TextView textView13 = (TextView) view.findViewById(R.id.content_0);
ImageView imageView14 = (ImageView) view.findViewById(R.id.image_0);
TextView textView14 = (TextView) view.findViewById(R.id.title_1);
LinearLayout linearLayout15 = (LinearLayout) view.findViewById(R.id.module_7);
TextView textView15 = (TextView) view.findViewById(R.id.content_1);
LinearLayout linearLayout16 = (LinearLayout) view.findViewById(R.id.module_6);
ImageView imageView15 = (ImageView) view.findViewById(R.id.image_1);
LinearLayout linearLayout17 = (LinearLayout) view.findViewById(R.id.module_5);
TextView textView16 = (TextView) view.findViewById(R.id.title_2);
LinearLayout linearLayout18 = (LinearLayout) view.findViewById(R.id.module_4);
TextView textView17 = (TextView) view.findViewById(R.id.content_2);
LinearLayout linearLayout19 = (LinearLayout) view.findViewById(R.id.module_3);
ImageView imageView16 = (ImageView) view.findViewById(R.id.image_2);
LinearLayout linearLayout20 = (LinearLayout) view.findViewById(R.id.module_2);
TextView textView18 = (TextView) view.findViewById(R.id.title_3);
TextView textView19 = (TextView) view.findViewById(R.id.content_3);
ImageView imageView17 = (ImageView) view.findViewById(R.id.image_3);
TextView textView20 = (TextView) view.findViewById(R.id.title_4);
TextView textView21 = (TextView) view.findViewById(R.id.content_4);
ImageView imageView18 = (ImageView) view.findViewById(R.id.image_4);
TextView textView22 = (TextView) view.findViewById(R.id.title_5);
TextView textView23 = (TextView) view.findViewById(R.id.content_5);
ImageView imageView19 = (ImageView) view.findViewById(R.id.image_5);
TextView textView24 = (TextView) view.findViewById(R.id.title_6);
TextView textView25 = (TextView) view.findViewById(R.id.content_6);
ImageView imageView20 = (ImageView) view.findViewById(R.id.image_6);
TextView textView26 = (TextView) view.findViewById(R.id.title_7);
TextView textView27 = (TextView) view.findViewById(R.id.content_7);
ImageView imageView21 = (ImageView) view.findViewById(R.id.image_7);
try {
imageView = imageView21;
} catch (JSONException e2) {
e = e2;
imageView = imageView21;
}
try {
jSONObject = new JSONObject(str2);
} catch (JSONException e3) {
e = e3;
e.printStackTrace();
jSONObject = null;
abnormalShapeList = (AbnormalShapeList) k.a(jSONObject.optString("data"), (Class<Object>) AbnormalShapeList.class);
if (abnormalShapeList != null) {
return;
}
return;
}
abnormalShapeList = (AbnormalShapeList) k.a(jSONObject.optString("data"), (Class<Object>) AbnormalShapeList.class);
if (abnormalShapeList != null || abnormalShapeList.info == null || abnormalShapeList.info.size() <= 0) {
return;
}
ImageView imageView22 = imageView16;
final AbnormalShape abnormalShape = abnormalShapeList.info.get(0);
if (str8.equals("true")) {
f10586b.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.f10610z.startActivity(AgentActivity.a(w.f10610z, (int) AgentActivity.f8576f).putExtra("module_id", AbnormalShape.this.module_id).putExtra("isMore", true));
}
});
}
int i4 = 0;
while (i4 < abnormalShapeList.info.size()) {
if (i4 == 0) {
final AbnormalShape abnormalShape2 = abnormalShapeList.info.get(i4);
textView12.setText(abnormalShape2.item_title);
textView13.setText(abnormalShape2.item_des);
bo.c.a(abnormalShape2.item_img, imageView14);
linearLayout13.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
});
}
if (i4 == 1) {
final AbnormalShape abnormalShape3 = abnormalShapeList.info.get(i4);
textView14.setText(abnormalShape3.item_title);
textView15.setText(abnormalShape3.item_des);
bo.c.a(abnormalShape3.item_img, imageView15);
linearLayout14.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
});
}
if (i4 == 2) {
final AbnormalShape abnormalShape4 = abnormalShapeList.info.get(i4);
textView16.setText(abnormalShape4.item_title);
textView17.setText(abnormalShape4.item_des);
linearLayout = linearLayout13;
imageView2 = imageView22;
bo.c.a(abnormalShape4.item_img, imageView2);
View.OnClickListener onClickListener = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout2 = linearLayout20;
linearLayout2.setOnClickListener(onClickListener);
} else {
linearLayout = linearLayout13;
linearLayout2 = linearLayout20;
imageView2 = imageView22;
}
if (i4 == 3) {
final AbnormalShape abnormalShape5 = abnormalShapeList.info.get(i4);
imageView3 = imageView2;
linearLayout3 = linearLayout14;
TextView textView28 = textView18;
textView28.setText(abnormalShape5.item_title);
textView = textView28;
TextView textView29 = textView19;
textView29.setText(abnormalShape5.item_des);
textView2 = textView29;
imageView4 = imageView17;
bo.c.a(abnormalShape5.item_img, imageView4);
View.OnClickListener onClickListener2 = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout4 = linearLayout19;
linearLayout4.setOnClickListener(onClickListener2);
} else {
imageView3 = imageView2;
linearLayout3 = linearLayout14;
linearLayout4 = linearLayout19;
textView = textView18;
textView2 = textView19;
imageView4 = imageView17;
}
if (i4 == 4) {
final AbnormalShape abnormalShape6 = abnormalShapeList.info.get(i4);
imageView5 = imageView4;
linearLayout5 = linearLayout2;
TextView textView30 = textView20;
textView30.setText(abnormalShape6.item_title);
textView3 = textView30;
TextView textView31 = textView21;
textView31.setText(abnormalShape6.item_des);
textView4 = textView31;
imageView6 = imageView18;
bo.c.a(abnormalShape6.item_img, imageView6);
View.OnClickListener onClickListener3 = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout6 = linearLayout18;
linearLayout6.setOnClickListener(onClickListener3);
} else {
imageView5 = imageView4;
linearLayout5 = linearLayout2;
linearLayout6 = linearLayout18;
textView3 = textView20;
textView4 = textView21;
imageView6 = imageView18;
}
if (i4 == 5) {
final AbnormalShape abnormalShape7 = abnormalShapeList.info.get(i4);
linearLayout7 = linearLayout6;
imageView7 = imageView6;
TextView textView32 = textView22;
textView32.setText(abnormalShape7.item_title);
textView5 = textView32;
TextView textView33 = textView23;
textView33.setText(abnormalShape7.item_des);
textView6 = textView33;
imageView8 = imageView19;
bo.c.a(abnormalShape7.item_img, imageView8);
View.OnClickListener onClickListener4 = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout8 = linearLayout17;
linearLayout8.setOnClickListener(onClickListener4);
} else {
linearLayout7 = linearLayout6;
imageView7 = imageView6;
linearLayout8 = linearLayout17;
textView5 = textView22;
textView6 = textView23;
imageView8 = imageView19;
}
if (i4 == 6) {
final AbnormalShape abnormalShape8 = abnormalShapeList.info.get(i4);
linearLayout9 = linearLayout8;
imageView9 = imageView8;
TextView textView34 = textView24;
textView34.setText(abnormalShape8.item_title);
textView7 = textView34;
TextView textView35 = textView25;
textView35.setText(abnormalShape8.item_des);
textView8 = textView35;
imageView10 = imageView20;
bo.c.a(abnormalShape8.item_img, imageView10);
View.OnClickListener onClickListener5 = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout10 = linearLayout16;
linearLayout10.setOnClickListener(onClickListener5);
} else {
linearLayout9 = linearLayout8;
imageView9 = imageView8;
linearLayout10 = linearLayout16;
textView7 = textView24;
textView8 = textView25;
imageView10 = imageView20;
}
if (i4 == 7) {
final AbnormalShape abnormalShape9 = abnormalShapeList.info.get(i4);
abnormalShapeList2 = abnormalShapeList;
linearLayout11 = linearLayout10;
TextView textView36 = textView26;
textView36.setText(abnormalShape9.item_title);
textView9 = textView36;
TextView textView37 = textView27;
textView37.setText(abnormalShape9.item_des);
textView10 = textView37;
imageView11 = imageView;
bo.c.a(abnormalShape9.item_img, imageView11);
View.OnClickListener onClickListener6 = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout12 = linearLayout15;
linearLayout12.setOnClickListener(onClickListener6);
} else {
abnormalShapeList2 = abnormalShapeList;
linearLayout11 = linearLayout10;
linearLayout12 = linearLayout15;
textView9 = textView26;
textView10 = textView27;
imageView11 = imageView;
}
i4++;
imageView = imageView11;
linearLayout15 = linearLayout12;
imageView20 = imageView10;
linearLayout19 = linearLayout4;
linearLayout13 = linearLayout;
imageView22 = imageView3;
linearLayout14 = linearLayout3;
textView18 = textView;
textView19 = textView2;
imageView17 = imageView5;
linearLayout20 = linearLayout5;
textView20 = textView3;
textView21 = textView4;
linearLayout18 = linearLayout7;
imageView18 = imageView7;
textView22 = textView5;
textView23 = textView6;
linearLayout17 = linearLayout9;
imageView19 = imageView9;
textView24 = textView7;
textView25 = textView8;
abnormalShapeList = abnormalShapeList2;
linearLayout16 = linearLayout11;
textView26 = textView9;
textView27 = textView10;
}
}
public static void e(final String str, View view, int i2, Context context, String str2, double d2, String str3, String str4, String str5, int i3, String str6, String str7, String str8) {
ImageView imageView;
JSONObject jSONObject;
AbnormalShapeList abnormalShapeList;
LinearLayout linearLayout;
LinearLayout linearLayout2;
ImageView imageView2;
ImageView imageView3;
LinearLayout linearLayout3;
LinearLayout linearLayout4;
TextView textView;
TextView textView2;
ImageView imageView4;
ImageView imageView5;
LinearLayout linearLayout5;
LinearLayout linearLayout6;
TextView textView3;
TextView textView4;
ImageView imageView6;
AbnormalShapeList abnormalShapeList2;
LinearLayout linearLayout7;
LinearLayout linearLayout8;
TextView textView5;
TextView textView6;
ImageView imageView7;
f10586b = (LinearLayout) view.findViewById(R.id.look_more);
if (str8.equals("true")) {
f10586b.setVisibility(0);
}
f10587c = (RelativeLayout) view.findViewById(R.id.isshow_title);
if (str7.equals("false")) {
f10587c.setVisibility(8);
}
TextView textView7 = (TextView) view.findViewById(R.id.title);
ImageView imageView8 = (ImageView) view.findViewById(R.id.image_icon);
ImageView imageView9 = (ImageView) view.findViewById(R.id.image);
if (str3 != null) {
textView7.setText(str3);
}
if (str5 != null) {
textView7.setTextColor(Color.parseColor(str5));
imageView8.setBackgroundColor(Color.parseColor(str5));
}
if (str4 != null && !TextUtils.isEmpty(str4)) {
bo.c.a(str4, imageView9);
} else {
imageView9.setVisibility(8);
}
LinearLayout linearLayout9 = (LinearLayout) view.findViewById(R.id.module_0);
LinearLayout linearLayout10 = (LinearLayout) view.findViewById(R.id.module_1);
TextView textView8 = (TextView) view.findViewById(R.id.title_0);
TextView textView9 = (TextView) view.findViewById(R.id.content_0);
ImageView imageView10 = (ImageView) view.findViewById(R.id.image_0);
TextView textView10 = (TextView) view.findViewById(R.id.title_1);
TextView textView11 = (TextView) view.findViewById(R.id.content_1);
ImageView imageView11 = (ImageView) view.findViewById(R.id.image_1);
LinearLayout linearLayout11 = (LinearLayout) view.findViewById(R.id.module_5);
TextView textView12 = (TextView) view.findViewById(R.id.title_2);
LinearLayout linearLayout12 = (LinearLayout) view.findViewById(R.id.module_4);
TextView textView13 = (TextView) view.findViewById(R.id.content_2);
LinearLayout linearLayout13 = (LinearLayout) view.findViewById(R.id.module_3);
ImageView imageView12 = (ImageView) view.findViewById(R.id.image_2);
LinearLayout linearLayout14 = (LinearLayout) view.findViewById(R.id.module_2);
TextView textView14 = (TextView) view.findViewById(R.id.title_3);
TextView textView15 = (TextView) view.findViewById(R.id.content_3);
ImageView imageView13 = (ImageView) view.findViewById(R.id.image_3);
TextView textView16 = (TextView) view.findViewById(R.id.title_4);
TextView textView17 = (TextView) view.findViewById(R.id.content_4);
ImageView imageView14 = (ImageView) view.findViewById(R.id.image_4);
TextView textView18 = (TextView) view.findViewById(R.id.title_5);
TextView textView19 = (TextView) view.findViewById(R.id.content_5);
ImageView imageView15 = (ImageView) view.findViewById(R.id.image_5);
try {
imageView = imageView15;
try {
jSONObject = new JSONObject(str2);
} catch (JSONException e2) {
e = e2;
e.printStackTrace();
jSONObject = null;
abnormalShapeList = (AbnormalShapeList) k.a(jSONObject.optString("data"), (Class<Object>) AbnormalShapeList.class);
if (abnormalShapeList != null) {
return;
}
return;
}
} catch (JSONException e3) {
e = e3;
imageView = imageView15;
}
abnormalShapeList = (AbnormalShapeList) k.a(jSONObject.optString("data"), (Class<Object>) AbnormalShapeList.class);
if (abnormalShapeList != null || abnormalShapeList.info == null || abnormalShapeList.info.size() <= 0) {
return;
}
ImageView imageView16 = imageView12;
final AbnormalShape abnormalShape = abnormalShapeList.info.get(0);
if (str8.equals("true")) {
f10586b.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.f10610z.startActivity(AgentActivity.a(w.f10610z, (int) AgentActivity.f8576f).putExtra("module_id", AbnormalShape.this.module_id).putExtra("isMore", true));
}
});
}
int i4 = 0;
while (i4 < abnormalShapeList.info.size()) {
if (i4 == 0) {
final AbnormalShape abnormalShape2 = abnormalShapeList.info.get(i4);
textView8.setText(abnormalShape2.item_title);
textView9.setText(abnormalShape2.item_des);
bo.c.a(abnormalShape2.item_img, imageView10);
linearLayout9.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
});
}
if (i4 == 1) {
final AbnormalShape abnormalShape3 = abnormalShapeList.info.get(i4);
textView10.setText(abnormalShape3.item_title);
textView11.setText(abnormalShape3.item_des);
bo.c.a(abnormalShape3.item_img, imageView11);
linearLayout10.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
});
}
if (i4 == 2) {
final AbnormalShape abnormalShape4 = abnormalShapeList.info.get(i4);
textView12.setText(abnormalShape4.item_title);
textView13.setText(abnormalShape4.item_des);
linearLayout = linearLayout9;
imageView2 = imageView16;
bo.c.a(abnormalShape4.item_img, imageView2);
View.OnClickListener onClickListener = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout2 = linearLayout14;
linearLayout2.setOnClickListener(onClickListener);
} else {
linearLayout = linearLayout9;
linearLayout2 = linearLayout14;
imageView2 = imageView16;
}
if (i4 == 3) {
final AbnormalShape abnormalShape5 = abnormalShapeList.info.get(i4);
imageView3 = imageView2;
linearLayout3 = linearLayout10;
TextView textView20 = textView14;
textView20.setText(abnormalShape5.item_title);
textView = textView20;
TextView textView21 = textView15;
textView21.setText(abnormalShape5.item_des);
textView2 = textView21;
imageView4 = imageView13;
bo.c.a(abnormalShape5.item_img, imageView4);
View.OnClickListener onClickListener2 = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout4 = linearLayout13;
linearLayout4.setOnClickListener(onClickListener2);
} else {
imageView3 = imageView2;
linearLayout3 = linearLayout10;
linearLayout4 = linearLayout13;
textView = textView14;
textView2 = textView15;
imageView4 = imageView13;
}
if (i4 == 4) {
final AbnormalShape abnormalShape6 = abnormalShapeList.info.get(i4);
imageView5 = imageView4;
linearLayout5 = linearLayout2;
TextView textView22 = textView16;
textView22.setText(abnormalShape6.item_title);
textView3 = textView22;
TextView textView23 = textView17;
textView23.setText(abnormalShape6.item_des);
textView4 = textView23;
imageView6 = imageView14;
bo.c.a(abnormalShape6.item_img, imageView6);
View.OnClickListener onClickListener3 = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout6 = linearLayout12;
linearLayout6.setOnClickListener(onClickListener3);
} else {
imageView5 = imageView4;
linearLayout5 = linearLayout2;
linearLayout6 = linearLayout12;
textView3 = textView16;
textView4 = textView17;
imageView6 = imageView14;
}
if (i4 == 5) {
final AbnormalShape abnormalShape7 = abnormalShapeList.info.get(i4);
abnormalShapeList2 = abnormalShapeList;
linearLayout7 = linearLayout6;
TextView textView24 = textView18;
textView24.setText(abnormalShape7.item_title);
textView5 = textView24;
TextView textView25 = textView19;
textView25.setText(abnormalShape7.item_des);
textView6 = textView25;
imageView7 = imageView;
bo.c.a(abnormalShape7.item_img, imageView7);
View.OnClickListener onClickListener4 = new View.OnClickListener() {
@Override
public void onClick(View view2) {
w.a(AbnormalShape.this.link_type, AbnormalShape.this.item_title, AbnormalShape.this.link_url.toString(), str, AbnormalShape.this.id);
}
};
linearLayout8 = linearLayout11;
linearLayout8.setOnClickListener(onClickListener4);
} else {
abnormalShapeList2 = abnormalShapeList;
linearLayout7 = linearLayout6;
linearLayout8 = linearLayout11;
textView5 = textView18;
textView6 = textView19;
imageView7 = imageView;
}
i4++;
imageView = imageView7;
linearLayout11 = linearLayout8;
imageView14 = imageView6;
linearLayout13 = linearLayout4;
linearLayout9 = linearLayout;
imageView16 = imageView3;
linearLayout10 = linearLayout3;
textView14 = textView;
textView15 = textView2;
imageView13 = imageView5;
linearLayout14 = linearLayout5;
textView16 = textView3;
textView17 = textView4;
abnormalShapeList = abnormalShapeList2;
linearLayout12 = linearLayout7;
textView18 = textView5;
textView19 = textView6;
}
}
public static void a(View view, final Context context, String str) {
LinearLayout linearLayout = (LinearLayout) view.findViewById(R.id.linear);
if (linearLayout != null) {
linearLayout.removeAllViews();
}
try {
JSONArray jSONArray = new JSONArray(str);
if (jSONArray != null && jSONArray.length() > 0) {
for (int i2 = 0; i2 < 1; i2++) {
LinearLayout linearLayout2 = new LinearLayout(context);
linearLayout2.setOrientation(0);
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -1);
int width = ((WindowManager) context.getSystemService("window")).getDefaultDisplay().getWidth();
linearLayout2.setLayoutParams(layoutParams);
for (int i3 = 0; i3 < 4; i3++) {
LinearLayout linearLayout3 = (LinearLayout) LayoutInflater.from(context).inflate(R.layout.main_house_quick_item, (ViewGroup) null);
linearLayout3.setLayoutParams(new LinearLayout.LayoutParams(width / 4, -1));
JSONObject jSONObject = jSONArray.getJSONObject(i3);
final String string = jSONObject.getString(ca.c.f4821e);
((TextView) linearLayout3.findViewById(R.id.title)).setText(jSONObject.getString(ca.c.f4821e));
linearLayout2.addView(linearLayout3);
bo.c.a(jSONObject.getString("icon"), (ImageView) linearLayout3.findViewById(R.id.image));
linearLayout3.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View view2, MotionEvent motionEvent) {
char c2;
if (motionEvent.getAction() == 1) {
String str2 = string;
int hashCode = str2.hashCode();
if (hashCode == 624660905) {
if (str2.equals("会员专属")) {
c2 = 3;
switch (c2) {
}
}
c2 = 65535;
switch (c2) {
}
} else if (hashCode == 767955314) {
if (str2.equals("成为星标")) {
c2 = 0;
switch (c2) {
}
}
c2 = 65535;
switch (c2) {
}
} else if (hashCode != 776770450) {
if (hashCode == 834354531 && str2.equals("楼盘专区")) {
c2 = 1;
switch (c2) {
case 0:
context.startActivity(AgentActivity.a(context, (int) AgentActivity.cV));
break;
case 1:
context.startActivity(AgentActivity.a(context, (int) AgentActivity.cW));
break;
case 2:
context.startActivity(AgentActivity.a(context, (int) AgentActivity.cX).putExtra("key", "discount"));
break;
case 3:
context.startActivity(AgentActivity.a(context, (int) AgentActivity.cY).putExtra("key", "member"));
break;
}
}
c2 = 65535;
switch (c2) {
}
} else {
if (str2.equals("折扣专区")) {
c2 = 2;
switch (c2) {
}
}
c2 = 65535;
switch (c2) {
}
}
}
return true;
}
});
}
linearLayout.addView(linearLayout2);
}
}
} catch (JSONException e2) {
e2.printStackTrace();
}
}
public static void f(final String str, View view, int i2, final Context context, String str2, double d2, String str3, String str4, String str5, int i3, String str6, String str7, String str8) {
JSONObject jSONObject;
int i4;
int i5;
int i6;
int i7 = i3;
Log.d("wy", "====>" + str + "module_id");
Log.d("wy", "====>" + i2 + IjkMediaMeta.IJKM_KEY_TYPE);
Log.d("wy", "====>" + str2 + "json");
Log.d("wy", "====>" + d2 + "weight");
Log.d("wy", "====>" + str3 + cv.c.J);
Log.d("wy", "====>" + str4 + "title_icon");
Log.d("wy", "====>" + str5 + "title_color");
Log.d("wy", "====>" + i7 + "column_num");
Log.d("wy", "====>" + str6 + "moudle_icon");
Log.d("wy", "====>" + str7 + "isshow_module_title");
Log.d("wy", "====>" + str8 + "isshow_sub_module");
Log.d("wy", "====>" + str + "module_id");
LinearLayout linearLayout = (LinearLayout) view.findViewById(R.id.linear);
if (linearLayout != null) {
linearLayout.removeAllViews();
}
ViewGroup viewGroup = null;
try {
jSONObject = new JSONObject(str2);
} catch (JSONException e2) {
e2.printStackTrace();
jSONObject = null;
}
ShortcutList shortcutList = (ShortcutList) k.a(jSONObject.optString("data"), (Class<Object>) ShortcutList.class);
if (i7 == 0) {
i7 = 4;
}
if (shortcutList == null || shortcutList.info.size() <= 0 || shortcutList.info == null) {
return;
}
int floor = (int) Math.floor(shortcutList.info.size() / i7);
int i8 = 0;
int i9 = 0;
while (i9 < floor) {
LinearLayout linearLayout2 = new LinearLayout(context);
linearLayout2.setOrientation(i8);
int i10 = -1;
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -1);
int width = ((WindowManager) context.getSystemService("window")).getDefaultDisplay().getWidth();
linearLayout2.setLayoutParams(layoutParams);
int i11 = i8;
while (i11 < i7) {
final Shortcut shortcut = shortcutList.info.get((i9 * i7) + i11);
LinearLayout linearLayout3 = (LinearLayout) LayoutInflater.from(context).inflate(R.layout.shortcut_entrance_item, viewGroup);
linearLayout3.setLayoutParams(new LinearLayout.LayoutParams(width / i7, i10));
final ImageView imageView = (ImageView) linearLayout3.findViewById(R.id.image);
TextView textView = (TextView) linearLayout3.findViewById(R.id.title);
if (shortcut.shortcut_img != null) {
i4 = i7;
if (!shortcut.shortcut_img.equals("") && shortcut.shortcut_img_down != null && !shortcut.shortcut_img_down.equals("")) {
i5 = floor;
i6 = 0;
new AsyncTask<String, Integer, Bitmap>() {
@Override
public Bitmap doInBackground(String... strArr) {
try {
w.f10588d.put(strArr[0], b.d(strArr[0]));
} catch (Exception unused) {
}
return w.f10588d.get(strArr[0]);
}
@Override
public void onPostExecute(Bitmap bitmap) {
imageView.setImageBitmap(bitmap);
super.onPostExecute(bitmap);
}
}.execute(shortcut.shortcut_img);
new AsyncTask<String, Integer, Bitmap>() {
@Override
public Bitmap doInBackground(String... strArr) {
try {
w.f10588d.put(strArr[0], b.d(strArr[0]));
} catch (Exception unused) {
}
return w.f10588d.get(strArr[0]);
}
@Override
public void onPostExecute(Bitmap bitmap) {
super.onPostExecute(bitmap);
}
}.execute(shortcut.shortcut_img_down);
if (shortcutList != null && shortcutList.info != null && shortcut != null && shortcutList.info.size() > 0) {
textView.setText(shortcut.shortcut_title);
if ("珍品拍卖".equals(shortcut.shortcut_title)) {
textView.setText("乐购直播");
}
linearLayout2.addView(linearLayout3);
if (!"充值中心".equals(shortcut.shortcut_title)) {
if (shortcut.shortcut_img == null || shortcut.shortcut_img.equals("") || shortcut.shortcut_img_down == null || shortcut.shortcut_img_down.equals("")) {
imageView.setBackgroundResource(R.drawable.btn_chongzhizhongxin);
}
imageView.setTag("充值中心");
} else if ("积分私享".equals(shortcut.shortcut_title)) {
if (shortcut.shortcut_img == null || shortcut.shortcut_img.equals("") || shortcut.shortcut_img_down == null || shortcut.shortcut_img_down.equals("")) {
imageView.setBackgroundResource(R.drawable.btn_jifensixiang);
}
imageView.setTag("积分私享");
} else if ("珍品拍卖".equals(shortcut.shortcut_title)) {
if (shortcut.shortcut_img == null || shortcut.shortcut_img.equals("") || shortcut.shortcut_img_down == null || shortcut.shortcut_img_down.equals("")) {
imageView.setBackgroundResource(R.drawable.btn_legouzhibo);
}
imageView.setTag("珍品拍卖");
} else if ("生粉论坛".equals(shortcut.shortcut_title)) {
if (shortcut.shortcut_img == null || shortcut.shortcut_img.equals("") || shortcut.shortcut_img_down == null || shortcut.shortcut_img_down.equals("")) {
imageView.setBackgroundResource(R.drawable.btn_shengfenluntan);
}
imageView.setTag("生粉论坛");
gd.f.a().b(gd.f.f18926f);
gd.f.a().b(gd.f.f18927g);
}
}
linearLayout3.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View view2, MotionEvent motionEvent) {
switch (motionEvent.getAction()) {
case 0:
if (Shortcut.this.shortcut_img != null && !Shortcut.this.shortcut_img.equals("") && Shortcut.this.shortcut_img_down != null && !Shortcut.this.shortcut_img_down.equals("")) {
imageView.setImageBitmap(w.f10588d.get(Shortcut.this.shortcut_img_down));
}
Log.i("wy", "DOWN");
break;
case 1:
if (Shortcut.this.shortcut_img != null && !Shortcut.this.shortcut_img.equals("") && Shortcut.this.shortcut_img_down != null && !Shortcut.this.shortcut_img_down.equals("")) {
imageView.setImageBitmap(w.f10588d.get(Shortcut.this.shortcut_img));
}
Log.i("wy", "DOWN");
if ("充值中心".equals(Shortcut.this.shortcut_title)) {
if (AgentApplication.c(w.f10610z).c()) {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8499ae));
break;
} else {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8580j));
break;
}
} else if ("卡券激活".equals(Shortcut.this.shortcut_title)) {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8586p));
break;
} else if ("我的订单".equals(Shortcut.this.shortcut_title)) {
if (AgentApplication.c(w.f10610z).c()) {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8591u));
break;
} else {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8580j));
break;
}
} else if ("积分私享".equals(Shortcut.this.shortcut_title)) {
if (AgentApplication.c(w.f10610z).c()) {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8565cr));
break;
} else {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8580j));
break;
}
} else if ("珍品拍卖".equals(Shortcut.this.shortcut_title)) {
PrivacyActivity.a(view2.getContext(), "https://wx.vzan.com/live/livedetail-629018396");
break;
} else if ("生粉论坛".equals(Shortcut.this.shortcut_title)) {
if (AgentApplication.c(w.f10610z).c()) {
context.startActivity(new Intent(context, FanForumActivity.class));
break;
} else {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8580j));
break;
}
} else if ("地产服务".equals(Shortcut.this.shortcut_title)) {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.cU));
break;
} else if (Shortcut.this.link_type.equals("6")) {
w.f10609y.a();
break;
} else if (Shortcut.this.link_type.equals("7")) {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8505ak).putExtra(cv.c.J, Shortcut.this.shortcut_title));
break;
} else if (Shortcut.this.link_type.equals("8")) {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8503ai).putExtra(cv.c.J, Shortcut.this.shortcut_title));
break;
} else if (Shortcut.this.link_type.equals("9")) {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8504aj).putExtra(cv.c.J, Shortcut.this.shortcut_title));
break;
} else if (Shortcut.this.link_type.equals("3")) {
if (!TextUtils.isEmpty(Shortcut.this.link_url)) {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8577g).putExtra(cv.c.J, Shortcut.this.shortcut_title).putExtra(com.shopex.westore.k.f10186i, Shortcut.this.link_url));
break;
} else {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8576f).putExtra("module_id", str).putExtra("id", Shortcut.this.id).putExtra("isMoreGood", true).putExtra(cv.c.J, Shortcut.this.shortcut_title));
break;
}
} else if (Shortcut.this.link_type.equals(cv.c.f13824ao)) {
context.startActivity(AgentActivity.a(context, 307).putExtra(cv.c.J, Shortcut.this.shortcut_title).putExtra("com.shopex.westore.EXTRA_URL", Shortcut.this.link_url));
break;
} else if (Shortcut.this.link_type.equals("1")) {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8576f).putExtra(cv.c.J, Shortcut.this.shortcut_title).putExtra(com.shopex.westore.k.f10186i, Shortcut.this.link_url).putExtra("module_id", str).putExtra("id", Shortcut.this.id));
break;
} else if (Shortcut.this.link_type.equals("2")) {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8576f).putExtra(cv.c.J, Shortcut.this.shortcut_title).putExtra(com.shopex.westore.k.f10191n, Shortcut.this.shortcut_title).putExtra(com.shopex.westore.k.f10194q, Shortcut.this.link_url).putExtra("module_id", str).putExtra("id", Shortcut.this.id));
break;
}
break;
}
return true;
}
});
i11++;
i8 = i6;
i7 = i4;
floor = i5;
viewGroup = null;
i10 = -1;
}
} else {
i4 = i7;
}
i5 = floor;
i6 = 0;
if (shortcutList != null) {
textView.setText(shortcut.shortcut_title);
if ("珍品拍卖".equals(shortcut.shortcut_title)) {
}
linearLayout2.addView(linearLayout3);
if (!"充值中心".equals(shortcut.shortcut_title)) {
}
}
linearLayout3.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View view2, MotionEvent motionEvent) {
switch (motionEvent.getAction()) {
case 0:
if (Shortcut.this.shortcut_img != null && !Shortcut.this.shortcut_img.equals("") && Shortcut.this.shortcut_img_down != null && !Shortcut.this.shortcut_img_down.equals("")) {
imageView.setImageBitmap(w.f10588d.get(Shortcut.this.shortcut_img_down));
}
Log.i("wy", "DOWN");
break;
case 1:
if (Shortcut.this.shortcut_img != null && !Shortcut.this.shortcut_img.equals("") && Shortcut.this.shortcut_img_down != null && !Shortcut.this.shortcut_img_down.equals("")) {
imageView.setImageBitmap(w.f10588d.get(Shortcut.this.shortcut_img));
}
Log.i("wy", "DOWN");
if ("充值中心".equals(Shortcut.this.shortcut_title)) {
if (AgentApplication.c(w.f10610z).c()) {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8499ae));
break;
} else {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8580j));
break;
}
} else if ("卡券激活".equals(Shortcut.this.shortcut_title)) {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8586p));
break;
} else if ("我的订单".equals(Shortcut.this.shortcut_title)) {
if (AgentApplication.c(w.f10610z).c()) {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8591u));
break;
} else {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8580j));
break;
}
} else if ("积分私享".equals(Shortcut.this.shortcut_title)) {
if (AgentApplication.c(w.f10610z).c()) {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8565cr));
break;
} else {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8580j));
break;
}
} else if ("珍品拍卖".equals(Shortcut.this.shortcut_title)) {
PrivacyActivity.a(view2.getContext(), "https://wx.vzan.com/live/livedetail-629018396");
break;
} else if ("生粉论坛".equals(Shortcut.this.shortcut_title)) {
if (AgentApplication.c(w.f10610z).c()) {
context.startActivity(new Intent(context, FanForumActivity.class));
break;
} else {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8580j));
break;
}
} else if ("地产服务".equals(Shortcut.this.shortcut_title)) {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.cU));
break;
} else if (Shortcut.this.link_type.equals("6")) {
w.f10609y.a();
break;
} else if (Shortcut.this.link_type.equals("7")) {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8505ak).putExtra(cv.c.J, Shortcut.this.shortcut_title));
break;
} else if (Shortcut.this.link_type.equals("8")) {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8503ai).putExtra(cv.c.J, Shortcut.this.shortcut_title));
break;
} else if (Shortcut.this.link_type.equals("9")) {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8504aj).putExtra(cv.c.J, Shortcut.this.shortcut_title));
break;
} else if (Shortcut.this.link_type.equals("3")) {
if (!TextUtils.isEmpty(Shortcut.this.link_url)) {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8577g).putExtra(cv.c.J, Shortcut.this.shortcut_title).putExtra(com.shopex.westore.k.f10186i, Shortcut.this.link_url));
break;
} else {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8576f).putExtra("module_id", str).putExtra("id", Shortcut.this.id).putExtra("isMoreGood", true).putExtra(cv.c.J, Shortcut.this.shortcut_title));
break;
}
} else if (Shortcut.this.link_type.equals(cv.c.f13824ao)) {
context.startActivity(AgentActivity.a(context, 307).putExtra(cv.c.J, Shortcut.this.shortcut_title).putExtra("com.shopex.westore.EXTRA_URL", Shortcut.this.link_url));
break;
} else if (Shortcut.this.link_type.equals("1")) {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8576f).putExtra(cv.c.J, Shortcut.this.shortcut_title).putExtra(com.shopex.westore.k.f10186i, Shortcut.this.link_url).putExtra("module_id", str).putExtra("id", Shortcut.this.id));
break;
} else if (Shortcut.this.link_type.equals("2")) {
context.startActivity(AgentActivity.a(context, (int) AgentActivity.f8576f).putExtra(cv.c.J, Shortcut.this.shortcut_title).putExtra(com.shopex.westore.k.f10191n, Shortcut.this.shortcut_title).putExtra(com.shopex.westore.k.f10194q, Shortcut.this.link_url).putExtra("module_id", str).putExtra("id", Shortcut.this.id));
break;
}
break;
}
return true;
}
});
i11++;
i8 = i6;
i7 = i4;
floor = i5;
viewGroup = null;
i10 = -1;
}
linearLayout.addView(linearLayout2);
i9++;
viewGroup = null;
}
}
public static void a(String str, String str2, String str3, String str4, String str5) {
if ("3".equals(str)) {
if (!TextUtils.isEmpty(str3)) {
f10610z.startActivity(AgentActivity.a(f10610z, (int) AgentActivity.f8577g).putExtra(com.shopex.westore.k.f10186i, str3).putExtra(cv.c.J, str2));
} else {
f10610z.startActivity(AgentActivity.a(f10610z, (int) AgentActivity.f8576f).putExtra("module_id", str4).putExtra("id", str5).putExtra("isMoreGood", true).putExtra(cv.c.J, str2));
}
} else if (cv.c.f13824ao.equals(str)) {
f10610z.startActivity(AgentActivity.a(f10610z, 307).putExtra("com.shopex.westore.EXTRA_URL", str3).putExtra(cv.c.J, str2));
} else if ("1".equals(str)) {
f10610z.startActivity(AgentActivity.a(f10610z, (int) AgentActivity.f8576f).putExtra(com.shopex.westore.k.f10186i, str3).putExtra(cv.c.J, str2).putExtra(IjkMediaMeta.IJKM_KEY_TYPE, str).putExtra("module_id", str4).putExtra("id", str5));
} else if ("2".equals(str)) {
f10610z.startActivity(AgentActivity.a(f10610z, (int) AgentActivity.f8576f).putExtra(com.shopex.westore.k.f10194q, str3).putExtra(cv.c.J, str2).putExtra(IjkMediaMeta.IJKM_KEY_TYPE, str).putExtra("module_id", str4).putExtra("id", str5));
}
}
private void a(ImageView imageView, String str) {
imageView.setImageBitmap(f10588d.get(str));
}
}