正在查看: 95爱播免登录版 v3.1.9 应用的 TeamPersonActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 95爱播免登录版 v3.1.9 应用的 TeamPersonActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.showself.ui;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import chat.entity.NotificationNumber;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.ImageLoader;
import com.mifeng.ui.R;
import com.mobile.auth.gatewayauth.Constant;
import com.r.b.d2;
import com.showself.domain.GetBaseParser;
import com.showself.domain.GetTeamPersonParser;
import com.showself.domain.LoginResultInfo;
import com.showself.resource.ResourceManager;
import com.showself.show.bean.TeamContributionBean;
import com.showself.show.bean.TeamMemberListBean;
import com.showself.show.bean.TeamPersonBean;
import com.showself.show.bean.TeamProtectAnchorBean;
import com.showself.ui.show.g;
import com.showself.utils.Utils;
import com.showself.utils.r;
import com.showself.utils.r0;
import com.showself.utils.u0;
import com.showself.view.ArmyBadgeView;
import com.showself.view.ImmersiveStatusBar;
import com.showself.view.f;
import com.showself.view.q;
import com.sina.weibo.sdk.auth.Oauth2AccessToken;
import java.util.ArrayList;
import java.util.HashMap;
import org.apache.commons.httpclient.cookie.CookieSpec;
public class TeamPersonActivity extends com.showself.ui.c implements View.OnClickListener, f.d {
private RelativeLayout A;
private RelativeLayout B;
private RelativeLayout C;
private ImageView G;
private ImageView H;
private ImageView I;
private RelativeLayout J;
private RelativeLayout K;
private int[] L;
private RelativeLayout[] M;
private int[] N;
private ImageView[] O;
private int[] P;
private ImageView[] Q;
private int[] R;
private TextView[] S;
private int[] T;
private TextView[] U;
private int[] V;
private ArmyBadgeView W;
private ArmyBadgeView X;
private ImmersiveStatusBar Y;
private TextView Z;
private ImageView a;
private int a0;
private ImageView b;
private LoginResultInfo b0;
private ImageView c;
private d2 c0;
private ImageView d;
private ListView d0;
private ImageView f2894e;
private LinearLayout e0;
private ImageView f2895f;
private ImageView f2896g;
private TeamPersonBean g0;
private ImageView f2897h;
private TextView h0;
private TextView f2898i;
private RelativeLayout i0;
private TextView f2899j;
private ImageView j0;
private TextView f2900k;
private TextView l;
private TextView m;
private TextView n;
private int n0;
private TextView o;
private boolean o0;
private TextView p;
private TextView p0;
private RelativeLayout q;
private ImageView r;
private ImageView s;
private ImageView t;
private TextView u;
private TextView v;
private TextView w;
private TextView x;
private TextView y;
private TextView z;
private int f0 = -1;
private ArrayList<TeamMemberListBean> k0 = new ArrayList<>();
private ArrayList<TeamContributionBean> l0 = new ArrayList<>();
private ArrayList<TeamProtectAnchorBean> m0 = new ArrayList<>();
private Handler q0 = new a();
class a extends Handler {
a() {
}
@Override
public void handleMessage(Message message) {
if (TeamPersonActivity.this.q0 == null) {
return;
}
try {
TeamPersonActivity.this.refresh(Integer.valueOf(message.what), message.obj, Integer.valueOf(message.arg1));
} catch (Exception e2) {
e2.printStackTrace();
}
}
}
class b implements com.r.c.d {
b() {
}
@Override
public void onRequestFinish(com.r.c.c cVar, Object obj) {
TeamPersonActivity.this.I((HashMap) obj);
}
}
class c implements com.r.c.d {
c() {
}
@Override
public void onRequestFinish(com.r.c.c cVar, Object obj) {
TeamPersonActivity.this.H((HashMap) obj, 3);
}
}
class d implements com.r.c.d {
d() {
}
@Override
public void onRequestFinish(com.r.c.c cVar, Object obj) {
TeamPersonActivity.this.H((HashMap) obj, 1);
}
}
public class e implements ImageLoader.ImageListener {
private ImageView a;
public e(TeamPersonActivity teamPersonActivity, ImageView imageView) {
this.a = imageView;
}
public void onErrorResponse(VolleyError volleyError) {
}
public void onResponse(ImageLoader.ImageContainer imageContainer, boolean z) {
this.a.setImageBitmap(Utils.J0(imageContainer.getBitmap(), 0.0f));
}
}
private class f implements ImageLoader.ImageListener {
private ImageView a;
private LinearLayout.LayoutParams b = new LinearLayout.LayoutParams(-2, -2);
public f(ImageView imageView) {
this.a = imageView;
}
public void onErrorResponse(VolleyError volleyError) {
}
public void onResponse(ImageLoader.ImageContainer imageContainer, boolean z) {
if (imageContainer == null || imageContainer.getBitmap() == null) {
return;
}
this.b.height = r.b(TeamPersonActivity.this, 15.0f);
this.b.width = r.b(TeamPersonActivity.this, (imageContainer.getBitmap().getWidth() * 15) / imageContainer.getBitmap().getHeight());
this.b.rightMargin = r.b(TeamPersonActivity.this, 4.0f);
this.a.setLayoutParams(this.b);
this.a.setImageBitmap(imageContainer.getBitmap());
}
}
private void C() {
this.G.setBackgroundResource(0);
this.H.setBackgroundResource(0);
this.I.setBackgroundResource(0);
this.u.setText("虚位以待");
this.v.setText("虚位以待");
this.w.setText("虚位以待");
this.x.setText("");
this.y.setText("");
this.z.setText("");
this.s.setVisibility(4);
this.r.setVisibility(4);
this.t.setVisibility(4);
}
private void D() {
q qVar = new q();
qVar.k(this, new com.showself.view.f(this, qVar, this.g0.getArmyRole(), this.b0.getUserId(), this.a0, this.g0.getArmyName(), this).c(), 1.0f, 80, -1, -2, 0);
}
private void E() {
if (this.o0) {
return;
}
this.o0 = true;
HashMap hashMap = new HashMap();
hashMap.put("armyGroupId", Integer.valueOf(this.a0));
addTask(new com.showself.service.f(20021, hashMap), this, this.q0);
}
private void F() {
com.r.c.a aVar = new com.r.c.a();
aVar.b("armyGroupId", this.a0);
aVar.b(Oauth2AccessToken.KEY_UID, this.b0.getUserId());
new com.r.c.c(com.r.c.c.k("armyservice11/armygroupinfo/getarmygroupjoin.do", 1), aVar, new GetTeamPersonParser(), this).y(new b());
}
private void G(boolean z) {
com.r.c.a aVar = new com.r.c.a();
aVar.b(Oauth2AccessToken.KEY_UID, this.b0.getUserId());
if (z) {
aVar.b("isShowBadge", 1);
} else {
aVar.b("isShowBadge", 0);
}
new com.r.c.c(com.r.c.c.k("armyservice11/armygroupinfo/updateisShowBadge.do", 1), aVar, new GetBaseParser(), this).y(new c());
}
public void H(HashMap<Object, Object> hashMap, int i2) {
if (hashMap != null) {
int intValue = ((Integer) hashMap.get(com.showself.net.e.n1)).intValue();
String str = (String) hashMap.get(com.showself.net.e.o1);
if (intValue != 0) {
Utils.Z0(this, str);
return;
}
if (i2 == 1) {
Utils.Z0(this, getResources().getString(R.string.army_team_apply_success_tip));
} else if (i2 == 2) {
Utils.Z0(this, getResources().getString(R.string.army_team_sign_success_tip));
} else if (i2 == 3) {
Utils.Z0(this, getResources().getString(R.string.army_team_update_success_tip));
}
F();
E();
}
}
public void I(HashMap<Object, Object> hashMap) {
Utils.n(this);
if (hashMap != null) {
int intValue = ((Integer) hashMap.get(com.showself.net.e.n1)).intValue();
String str = (String) hashMap.get(com.showself.net.e.o1);
if (intValue != com.showself.net.e.m1) {
Utils.Z0(this, str);
return;
}
this.k0 = (ArrayList) hashMap.get("memberList");
this.m0 = (ArrayList) hashMap.get("anchorMemberList");
ArrayList<TeamMemberListBean> arrayList = this.k0;
if (arrayList != null && arrayList.size() > 0) {
K(this.k0);
}
ArrayList<TeamProtectAnchorBean> arrayList2 = this.m0;
if (arrayList2 != null && arrayList2.size() > 0) {
L(this.m0);
}
this.g0 = (TeamPersonBean) hashMap.get("teamperson");
this.h0.setText(this.g0.getArmyName() + getResources().getString(R.string.army_guard));
this.f0 = this.g0.getArmyGroupId();
this.f2898i.setText(this.g0.getArmyName());
this.f2899j.setText("ID:" + this.g0.getShowArmyGroupId());
this.n.setText(getResources().getString(R.string.army_team_commander) + this.g0.getCreateArmyUserName());
this.m.setText(this.g0.getTotalPerson() + CookieSpec.PATH_DELIM + this.g0.getContainPerson());
this.p0.setText(this.g0.getTotalValue() + "");
this.f2900k.setText(this.g0.getTotalPerson() + CookieSpec.PATH_DELIM + this.g0.getContainPerson());
this.p.setText(hashMap.get("onshowAnchorNum") + CookieSpec.PATH_DELIM + hashMap.get("totalAnchorNum"));
if (this.g0.getArmyRole() == 0) {
NotificationNumber.getShareNotificationNum().setArmyApproveNum(0);
} else {
NotificationNumber.getShareNotificationNum().setArmyApproveNum(((Integer) hashMap.get("memberCount")).intValue());
}
if (NotificationNumber.getShareNotificationNum().getArmyNum() > 0) {
this.j0.setVisibility(0);
} else {
this.j0.setVisibility(4);
}
this.o.setText(this.g0.getAnnouncement());
ImageLoader imageLoader = ImageLoader.getInstance(this);
String armyIcon = this.g0.getArmyIcon();
ImageView imageView = this.a;
imageLoader.displayImage(armyIcon, imageView, new e(this, imageView));
ImageLoader.getInstance(this).displayImage(this.g0.getAppLevelImage(), this.b);
if (this.g0.getUserStatus() == 0) {
this.l.setVisibility(0);
this.l.setBackgroundResource(R.drawable.army_sign_btn);
this.l.setText(getResources().getString(R.string.join));
this.i0.setVisibility(8);
} else if (this.g0.getUserStatus() == 1) {
this.l.setVisibility(4);
this.i0.setVisibility(8);
} else if (this.g0.getUserStatus() == 2) {
this.i0.setVisibility(0);
this.l.setVisibility(4);
}
if (this.g0.getShowBadge() == 0) {
this.Z.setBackgroundResource(R.drawable.team_person_open);
} else if (this.g0.getShowBadge() == 1) {
this.Z.setBackgroundResource(R.drawable.team_person_close);
}
this.Z.setOnClickListener(this);
this.W.d(this.g0.getArmyLevel(), this.g0.getLevelNumShow(), this.g0.getArmyName(), ResourceManager.getNewArmyUrl(this.g0.getLevelBgIndex()));
this.X.d(this.g0.getArmyLevel(), this.g0.getLevelNumShow(), this.g0.getArmyName(), ResourceManager.getNewArmyUrl(this.g0.getLevelBgIndex()));
this.l.setOnClickListener(this);
this.e0.setOnClickListener(this);
this.f2897h.setOnClickListener(this);
if (this.g0.getArmyRole() == 2 || this.g0.getArmyRole() == 1) {
this.f2897h.setVisibility(0);
} else {
this.f2897h.setVisibility(8);
}
if (this.g0.getUserStatus() == 2) {
this.J.setVisibility(0);
} else {
this.J.setVisibility(8);
}
}
}
private void J() {
com.r.c.a aVar = new com.r.c.a();
aVar.b(Oauth2AccessToken.KEY_UID, this.b0.getUserId());
aVar.b("armyGroupId", this.a0);
new com.r.c.c(com.r.c.c.k("armyservice11/custarmygroupmemberapply/savearmygroupmemberapply.do", 1), aVar, new GetBaseParser(), this).y(new d());
}
private void K(ArrayList<TeamMemberListBean> arrayList) {
if (arrayList != null) {
for (int i2 = 0; i2 < arrayList.size(); i2++) {
TeamMemberListBean teamMemberListBean = arrayList.get(i2);
if (i2 != 0) {
if (i2 != 1) {
if (i2 != 2) {
if (i2 != 3) {
if (i2 == 4) {
if (teamMemberListBean != null) {
ImageLoader imageLoader = ImageLoader.getInstance(this);
String avatar = teamMemberListBean.getAvatar();
ImageView imageView = this.f2896g;
imageLoader.displayImage(avatar, imageView, new e(this, imageView));
this.f2896g.setVisibility(0);
} else {
this.f2896g.setBackgroundResource(R.drawable.family_owner);
}
}
} else if (teamMemberListBean != null) {
ImageLoader imageLoader2 = ImageLoader.getInstance(this);
String avatar2 = teamMemberListBean.getAvatar();
ImageView imageView2 = this.f2895f;
imageLoader2.displayImage(avatar2, imageView2, new e(this, imageView2));
this.f2895f.setVisibility(0);
} else {
this.f2895f.setBackgroundResource(R.drawable.family_owner);
}
} else if (teamMemberListBean != null) {
ImageLoader imageLoader3 = ImageLoader.getInstance(this);
String avatar3 = teamMemberListBean.getAvatar();
ImageView imageView3 = this.f2894e;
imageLoader3.displayImage(avatar3, imageView3, new e(this, imageView3));
this.f2894e.setVisibility(0);
} else {
this.f2894e.setBackgroundResource(R.drawable.family_owner);
}
} else if (teamMemberListBean != null) {
ImageLoader imageLoader4 = ImageLoader.getInstance(this);
String avatar4 = teamMemberListBean.getAvatar();
ImageView imageView4 = this.d;
imageLoader4.displayImage(avatar4, imageView4, new e(this, imageView4));
this.d.setVisibility(0);
} else {
this.d.setBackgroundResource(R.drawable.family_owner);
}
} else if (teamMemberListBean != null) {
ImageLoader imageLoader5 = ImageLoader.getInstance(this);
String avatar5 = teamMemberListBean.getAvatar();
ImageView imageView5 = this.c;
imageLoader5.displayImage(avatar5, imageView5, new e(this, imageView5));
this.c.setVisibility(0);
} else {
this.c.setBackgroundResource(R.drawable.family_owner);
}
}
}
}
private void L(ArrayList<TeamProtectAnchorBean> arrayList) {
if (arrayList != null) {
C();
}
for (int i2 = 0; i2 < arrayList.size(); i2++) {
TeamProtectAnchorBean teamProtectAnchorBean = arrayList.get(i2);
if (i2 != 0) {
if (i2 != 1) {
if (i2 == 2 && arrayList != null) {
int occupyStatus = teamProtectAnchorBean.getOccupyStatus();
this.I.setVisibility(0);
if (occupyStatus == 1) {
this.I.setBackgroundResource(R.drawable.icon_team_protect_status_new);
} else if (occupyStatus == 2) {
this.I.setBackgroundResource(R.drawable.icon_team_protect_status_have);
} else if (occupyStatus == 3) {
this.I.setBackgroundResource(R.drawable.icon_team_protect_status_gone);
} else {
this.I.setVisibility(8);
}
this.w.setText(teamProtectAnchorBean.getNickName());
if (teamProtectAnchorBean.getToltalContribution() == 0) {
this.z.setVisibility(4);
} else {
this.z.setText(teamProtectAnchorBean.getToltalContribution() + "");
}
this.t.setVisibility(0);
ImageLoader imageLoader = ImageLoader.getInstance(this);
String avatar = teamProtectAnchorBean.getAvatar();
ImageView imageView = this.t;
imageLoader.displayImage(avatar, imageView, new e(this, imageView));
this.C.setOnClickListener(this);
}
} else if (arrayList != null) {
int occupyStatus2 = teamProtectAnchorBean.getOccupyStatus();
this.H.setVisibility(0);
if (occupyStatus2 == 1) {
this.H.setBackgroundResource(R.drawable.icon_team_protect_status_new);
} else if (occupyStatus2 == 2) {
this.H.setBackgroundResource(R.drawable.icon_team_protect_status_have);
} else if (occupyStatus2 == 3) {
this.H.setBackgroundResource(R.drawable.icon_team_protect_status_gone);
} else {
this.H.setVisibility(8);
}
this.v.setText(teamProtectAnchorBean.getNickName());
if (teamProtectAnchorBean.getToltalContribution() == 0) {
this.y.setVisibility(4);
} else {
this.y.setText(teamProtectAnchorBean.getToltalContribution() + "");
}
this.r.setVisibility(0);
ImageLoader imageLoader2 = ImageLoader.getInstance(this);
String avatar2 = teamProtectAnchorBean.getAvatar();
ImageView imageView2 = this.r;
imageLoader2.displayImage(avatar2, imageView2, new e(this, imageView2));
this.B.setOnClickListener(this);
}
} else if (arrayList != null) {
int occupyStatus3 = teamProtectAnchorBean.getOccupyStatus();
this.G.setVisibility(0);
if (occupyStatus3 == 1) {
this.G.setBackgroundResource(R.drawable.icon_team_protect_status_new);
} else if (occupyStatus3 == 2) {
this.G.setBackgroundResource(R.drawable.icon_team_protect_status_have);
} else if (occupyStatus3 == 3) {
this.G.setBackgroundResource(R.drawable.icon_team_protect_status_gone);
} else {
this.G.setVisibility(8);
}
this.u.setText(teamProtectAnchorBean.getNickName());
if (teamProtectAnchorBean.getToltalContribution() == 0) {
this.x.setVisibility(4);
} else {
this.x.setText(teamProtectAnchorBean.getToltalContribution() + "");
}
this.s.setVisibility(0);
ImageLoader imageLoader3 = ImageLoader.getInstance(this);
String avatar3 = teamProtectAnchorBean.getAvatar();
ImageView imageView3 = this.s;
imageLoader3.displayImage(avatar3, imageView3, new e(this, imageView3));
this.A.setOnClickListener(this);
}
}
}
private void M(ArrayList<TeamContributionBean> arrayList) {
if (arrayList != null) {
for (int i2 = 0; i2 < arrayList.size(); i2++) {
TeamContributionBean teamContributionBean = arrayList.get(i2);
if (teamContributionBean != null) {
RelativeLayout[] relativeLayoutArr = this.M;
if (relativeLayoutArr[i2] != null) {
relativeLayoutArr[i2].setVisibility(0);
this.M[i2].setOnClickListener(this);
} else {
relativeLayoutArr[i2].setOnClickListener(null);
}
this.S[i2].setText(teamContributionBean.getNickName());
this.U[i2].setText(teamContributionBean.getTotalContribution() + "");
ImageLoader imageLoader = ImageLoader.getInstance(this);
String avatar = teamContributionBean.getAvatar();
ImageView[] imageViewArr = this.O;
imageLoader.displayImage(avatar, imageViewArr[i2], new e(this, imageViewArr[i2]));
if (this.Q[i2] != null) {
ImageLoader imageLoader2 = ImageLoader.getInstance(this);
String d0 = Utils.d0(teamContributionBean.getNormalImage());
ImageView[] imageViewArr2 = this.Q;
imageLoader2.displayImage(d0, imageViewArr2[i2], new f(imageViewArr2[i2]));
}
int[] iArr = this.V;
if (iArr[i2] != -1) {
findViewById(iArr[i2]).setVisibility(0);
}
}
}
}
}
@Override
public void init() {
this.n0 = r0.y(this).getUserId();
int i2 = 0;
this.a0 = getIntent().getIntExtra("jid", 0);
findViewById(R.id.btn_nav_left).setOnClickListener(this);
this.h0 = (TextView) findViewById(R.id.tv_nav_title);
RelativeLayout relativeLayout = (RelativeLayout) findViewById(R.id.rl_team_person_right);
this.i0 = relativeLayout;
relativeLayout.setOnClickListener(this);
this.j0 = (ImageView) findViewById(R.id.iv_team_person_red_dot);
this.X = (ArmyBadgeView) findViewById(R.id.layout_team_group_badge);
this.W = (ArmyBadgeView) findViewById(R.id.layout_team_person_level);
this.J = (RelativeLayout) findViewById(R.id.rl_team_medal_use);
this.Y = (ImmersiveStatusBar) findViewById(2131298726);
int[] iArr = {R.id.rl_team_contribution1, R.id.rl_team_contribution2, R.id.rl_team_contribution3, R.id.rl_team_person_rank_topfour, R.id.rl_team_person_rank_topfive, R.id.rl_team_person_rank_topsix, R.id.rl_team_person_rank_topseven, R.id.rl_team_person_rank_topeight, R.id.rl_team_person_rank_topnine, R.id.rl_team_person_rank_topten};
this.L = iArr;
this.M = new RelativeLayout[iArr.length];
int i3 = 0;
while (true) {
RelativeLayout[] relativeLayoutArr = this.M;
if (i3 >= relativeLayoutArr.length) {
break;
}
relativeLayoutArr[i3] = (RelativeLayout) findViewById(this.L[i3]);
i3++;
}
this.K = (RelativeLayout) findViewById(R.id.rl_team_person_member);
this.a = (ImageView) findViewById(R.id.iv_team_person_icon);
this.b = (ImageView) findViewById(R.id.iv_level_image);
int[] iArr2 = {R.id.iv_team_person_rank_one, R.id.iv_team_person_rank_two, R.id.iv_team_person_rank_three, R.id.rl_team_person_rank_topfour_icon, R.id.rl_team_person_rank_topfive_icon, R.id.rl_team_person_rank_topsix_icon, R.id.rl_team_person_rank_topseven_icon, R.id.rl_team_person_rank_topeight_icon, R.id.rl_team_person_rank_topnine_icon, R.id.rl_team_person_rank_topten_icon};
this.N = iArr2;
this.O = new ImageView[iArr2.length];
int i4 = 0;
while (true) {
int[] iArr3 = this.N;
if (i4 >= iArr3.length) {
break;
}
this.O[i4] = (ImageView) findViewById(iArr3[i4]);
i4++;
}
int[] iArr4 = {-1, -1, -1, R.id.iv_team_person_rank_topfour_levelicon, R.id.iv_team_person_rank_topfive_levelicon, R.id.iv_team_person_rank_topsix_levelicon, R.id.iv_team_person_rank_topseven_levelicon, R.id.iv_team_person_rank_topeight_levelicon, R.id.iv_team_person_rank_topnine_levelicon, R.id.iv_team_person_rank_topten_levelicon};
this.P = iArr4;
this.Q = new ImageView[iArr4.length];
int i5 = 0;
while (true) {
ImageView[] imageViewArr = this.Q;
if (i5 >= imageViewArr.length) {
break;
}
int[] iArr5 = this.P;
if (iArr5[i5] == -1) {
imageViewArr[i5] = null;
} else {
imageViewArr[i5] = (ImageView) findViewById(iArr5[i5]);
}
i5++;
}
int[] iArr6 = {R.id.tv_team_person_rank_name1, R.id.tv_team_person_rank_name2, R.id.tv_team_person_rank_name3, R.id.tv_team_person_rank_topfour_name, R.id.tv_team_person_rank_topfive_name, R.id.tv_team_person_rank_topsix_name, R.id.tv_team_person_rank_topseven_name, R.id.tv_team_person_rank_topeight_name, R.id.tv_team_person_rank_topnine_name, R.id.tv_team_person_rank_topten_name};
this.R = iArr6;
this.S = new TextView[iArr6.length];
int i6 = 0;
while (true) {
TextView[] textViewArr = this.S;
if (i6 >= textViewArr.length) {
break;
}
textViewArr[i6] = (TextView) findViewById(this.R[i6]);
i6++;
}
int[] iArr7 = {R.id.tv_team_person_rank_contribution1, R.id.tv_team_person_rank_contribution2, R.id.tv_team_person_rank_contribution3, R.id.tv_team_person_rank_topfour_contribution, R.id.tv_team_person_rank_topfive_contribution, R.id.tv_team_person_rank_topsix_contribution, R.id.tv_team_person_rank_topseven_contribution, R.id.tv_team_person_rank_topeight_contribution, R.id.tv_team_person_rank_topnine_contribution, R.id.tv_team_person_rank_topten_contribution};
this.T = iArr7;
this.U = new TextView[iArr7.length];
while (true) {
TextView[] textViewArr2 = this.U;
if (i2 >= textViewArr2.length) {
this.V = new int[]{-1, -1, -1, -1, R.id.iv_team_person_rank_topfive_fg, R.id.iv_team_person_rank_topsix_fg, R.id.iv_team_person_rank_topseven_fg, R.id.iv_team_person_rank_topeight_fg, R.id.iv_team_person_rank_topnine_fg, R.id.iv_team_person_rank_topten_fg};
this.e0 = (LinearLayout) findViewById(R.id.ll_member_id);
this.c = (ImageView) findViewById(R.id.iv_member1);
this.d = (ImageView) findViewById(R.id.iv_member2);
this.f2894e = (ImageView) findViewById(R.id.iv_member3);
this.f2895f = (ImageView) findViewById(R.id.iv_member4);
this.f2896g = (ImageView) findViewById(R.id.iv_member5);
this.f2897h = (ImageView) findViewById(R.id.iv_team_person_announcement_update);
this.l = (TextView) findViewById(R.id.tv_team_join_or_sign);
this.f2900k = (TextView) findViewById(R.id.tv_team_manager_num);
this.p = (TextView) findViewById(R.id.tv_team_protect_anchor_num);
this.f2898i = (TextView) findViewById(R.id.tv_team_person_nickname);
this.f2899j = (TextView) findViewById(R.id.tv_team_person_jid);
this.m = (TextView) findViewById(R.id.tv_team_person_num);
this.n = (TextView) findViewById(R.id.tv_team_person_commander_name);
this.o = (TextView) findViewById(R.id.iv_team_person_announcement_content);
this.s = (ImageView) findViewById(R.id.iv_team_protect_rank_head_one);
this.r = (ImageView) findViewById(R.id.iv_team_protect_rank_head_two);
this.t = (ImageView) findViewById(R.id.iv_team_protect_rank_head_three);
this.u = (TextView) findViewById(R.id.tv_team_protect_rank_name_one);
this.v = (TextView) findViewById(R.id.tv_team_protect_rank_name_two);
this.w = (TextView) findViewById(R.id.tv_team_protect_rank_name_three);
this.x = (TextView) findViewById(R.id.tv_team_protect_rank_contribution_one);
this.y = (TextView) findViewById(R.id.tv_team_protect_rank_contribution_two);
this.z = (TextView) findViewById(R.id.tv_team_protect_rank_contribution_three);
this.G = (ImageView) findViewById(R.id.iv_team_protect_rank_status_one);
this.H = (ImageView) findViewById(R.id.iv_team_protect_rank_status_two);
this.I = (ImageView) findViewById(R.id.iv_team_protect_rank_status_three);
this.A = (RelativeLayout) findViewById(R.id.rl_protect_contribution_one);
this.B = (RelativeLayout) findViewById(R.id.rl_protect_contribution_two);
this.C = (RelativeLayout) findViewById(R.id.rl_protect_contribution_three);
this.q = (RelativeLayout) findViewById(R.id.rl_team_protect_num);
this.K.setOnClickListener(this);
this.q.setOnClickListener(this);
this.Z = (TextView) findViewById(R.id.team_badge_use);
this.p0 = (TextView) findViewById(R.id.tv_team_honor_value);
this.d0 = (ListView) findViewById(R.id.lv_team_mass);
d2 d2Var = new d2(this, null);
this.c0 = d2Var;
this.d0.setAdapter((ListAdapter) d2Var);
return;
}
textViewArr2[i2] = (TextView) findViewById(this.T[i2]);
i2++;
}
}
@Override
public void j() {
finish();
}
@Override
public void onClick(View view) {
switch (view.getId()) {
case R.id.btn_nav_left:
finish();
return;
case R.id.iv_team_person_announcement_update:
TeamPersonBean teamPersonBean = this.g0;
if (teamPersonBean != null) {
if (teamPersonBean.getArmyRole() == 2 || this.g0.getArmyRole() == 1) {
this.g0.getArmyGroupId();
Intent intent = new Intent((Context) this, (Class<?>) ArmyAnnouncementActivity.class);
intent.putExtra("armyGroupId", this.g0.getArmyGroupId());
startActivity(intent);
return;
}
return;
}
return;
case R.id.ll_member_id:
case R.id.rl_team_person_member:
Intent intent2 = new Intent((Context) this, (Class<?>) TeamManagerActivity.class);
intent2.putExtra("jid", this.f0);
intent2.putExtra(Constant.PROTOCOL_WEBVIEW_NAME, this.g0.getArmyName());
startActivity(intent2);
return;
case R.id.rl_protect_contribution_one:
if (this.m0.get(0).getUid() != this.n0) {
g.l(this, this.m0.get(0).getRoomId(), "");
return;
}
return;
case R.id.rl_protect_contribution_three:
if (this.m0.get(2).getUid() != this.n0) {
g.l(this, this.m0.get(2).getRoomId(), "");
return;
}
return;
case R.id.rl_protect_contribution_two:
if (this.m0.get(1).getUid() != this.n0) {
g.l(this, this.m0.get(1).getRoomId(), "");
return;
}
return;
case R.id.rl_team_person_right:
D();
return;
case R.id.rl_team_protect_num:
Intent intent3 = new Intent((Context) this, (Class<?>) TeamProtectMemberActivity.class);
intent3.putExtra("armyId", this.a0);
intent3.putExtra("armyRole", this.g0.getArmyRole());
startActivity(intent3);
return;
case R.id.team_badge_use:
TeamPersonBean teamPersonBean2 = this.g0;
if (teamPersonBean2 != null) {
if (teamPersonBean2.getShowBadge() == 0) {
G(true);
return;
} else {
if (this.g0.getShowBadge() == 1) {
G(false);
return;
}
return;
}
}
return;
case R.id.tv_team_join_or_sign:
TeamPersonBean teamPersonBean3 = this.g0;
if (teamPersonBean3 == null || teamPersonBean3.getUserStatus() != 0) {
return;
}
J();
return;
}
for (int i2 = 0; i2 < this.L.length; i2++) {
if (view.getId() == this.L[i2]) {
if (this.l0.get(i2) != null) {
Intent intent4 = new Intent((Context) this, (Class<?>) CardActivity.class);
intent4.putExtra("id", this.l0.get(i2).getUid());
startActivity(intent4);
return;
}
return;
}
}
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.team_person_layout);
u0.q(this, null);
this.b0 = r0.y(this);
init();
u0.i(this, this.Y, R.color.navigationbar_bg, true);
}
@Override
protected void onResume() {
super.onResume();
F();
E();
}
@Override
public void refresh(Object... objArr) {
this.o0 = false;
int intValue = ((Integer) objArr[0]).intValue();
HashMap hashMap = (HashMap) objArr[1];
if (hashMap != null) {
int intValue2 = ((Integer) hashMap.get(com.showself.net.e.n1)).intValue();
String str = (String) hashMap.get(com.showself.net.e.o1);
if (intValue != 20021) {
return;
}
if (intValue2 != 0) {
Utils.Z0(this, str);
return;
}
ArrayList<TeamContributionBean> arrayList = (ArrayList) hashMap.get("armyContribution");
this.l0 = arrayList;
if (arrayList == null || arrayList.size() <= 0) {
return;
}
M(this.l0);
}
}
}