正在查看: 95爱播免登录版 v3.1.9 应用的 ManageMoreActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 95爱播免登录版 v3.1.9 应用的 ManageMoreActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.showself.ui;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ListAdapter;
import android.widget.ListView;
import android.widget.TextView;
import com.mifeng.ui.R;
import com.r.b.r0;
import com.showself.domain.GetPropShallParser;
import com.showself.domain.GetRoomManageListParser;
import com.showself.domain.LoginResultInfo;
import com.showself.show.bean.PropShallBean;
import com.showself.ui.show.g;
import com.showself.utils.Utils;
import com.showself.utils.r;
import com.showself.utils.u0;
import com.showself.view.ImmersiveStatusBar;
import com.showself.view.n;
import com.tencent.smtt.sdk.TbsListener;
import com.tencent.tauth.AuthActivity;
import com.xiaomi.mipush.sdk.Constants;
import java.util.ArrayList;
import java.util.HashMap;
import org.json.JSONArray;
public class ManageMoreActivity extends com.showself.ui.c {
private Button a;
private TextView b;
private ListView c;
private ImmersiveStatusBar d;
private r0 f2714e;
private LoginResultInfo f2715f;
private int f2716g;
private c f2717h;
private ArrayList<PropShallBean> f2718i = new ArrayList<>();
private int f2719j = 0;
class a implements com.r.c.d {
a() {
}
@Override
public void onRequestFinish(com.r.c.c cVar, Object obj) {
ManageMoreActivity.this.G((HashMap) obj);
}
}
class b implements com.r.c.d {
b() {
}
@Override
public void onRequestFinish(com.r.c.c cVar, Object obj) {
ManageMoreActivity.this.F((HashMap) obj);
}
}
private class c implements View.OnClickListener {
private c() {
}
@Override
public void onClick(View view) {
int id = view.getId();
if (id == 2131296486) {
ManageMoreActivity.this.finish();
}
switch (id) {
case R.id.user_card_motoring_cancleuser1:
case R.id.user_card_motoring_cancleuser2:
ManageMoreActivity.this.E((PropShallBean) view.getTag());
break;
case R.id.user_card_motoring_use1:
case R.id.user_card_motoring_use2:
ManageMoreActivity.this.C((PropShallBean) view.getTag());
break;
}
}
c(ManageMoreActivity manageMoreActivity, a aVar) {
this();
}
}
public void C(PropShallBean propShallBean) {
g.l(this, propShallBean.getRoomid(), propShallBean.getBigAvatar());
}
private void D() {
com.r.c.a aVar = new com.r.c.a();
aVar.b("fuid", this.f2716g);
aVar.b("category", 1);
new com.r.c.c(com.r.c.c.k(com.showself.net.e.J0, 0), aVar, new GetPropShallParser(), this).y(new b());
}
public void E(PropShallBean propShallBean) {
com.r.c.a aVar = new com.r.c.a();
aVar.e("roomid_arr", propShallBean.getRoomid() + Constants.ACCEPT_TIME_SEPARATOR_SP);
aVar.b("roomid", propShallBean.getRoomid());
aVar.b(AuthActivity.ACTION_KEY, 45);
new com.r.c.c(com.r.c.c.k("serv_interact_shall.php", 0), aVar, new GetRoomManageListParser(), this).y(new a());
}
public void F(HashMap<Object, Object> hashMap) {
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) {
ArrayList<PropShallBean> arrayList = this.f2718i;
if (arrayList == null || arrayList.size() == 0) {
n nVar = new n(this);
this.c.addFooterView(nVar.a());
nVar.c(R.drawable.icon_no_manager, "您还木有成为其他人的场控呢~", r.a(110.0f), r.a(110.0f), TbsListener.ErrorCode.NEEDDOWNLOAD_FALSE_5);
}
Utils.Z0(this, str);
return;
}
this.f2714e.notifyDataSetChanged();
ArrayList<PropShallBean> arrayList2 = (ArrayList) hashMap.get("manageRoomsBean");
this.f2718i = arrayList2;
this.f2714e.a(arrayList2);
ArrayList<PropShallBean> arrayList3 = this.f2718i;
if (arrayList3 != null && arrayList3.size() > 0) {
JSONArray jSONArray = new JSONArray();
for (int i2 = 0; i2 < this.f2718i.size(); i2++) {
jSONArray.put(this.f2718i.get(i2).getRoomid());
}
com.r.n.g j2 = com.r.n.g.j();
com.r.n.d c2 = com.r.n.d.c();
c2.e("Me");
c2.f("ManagerPage");
c2.d("ManagerList");
c2.h(com.r.n.e.View);
c2.a("rooms", jSONArray.toString());
j2.u(c2.b());
}
ArrayList<PropShallBean> arrayList4 = this.f2718i;
if (arrayList4 == null || arrayList4.size() == 0) {
n nVar2 = new n(this);
this.c.addFooterView(nVar2.a());
nVar2.c(R.drawable.icon_no_manager, "您还木有成为其他人的场控呢~", r.a(110.0f), r.a(110.0f), TbsListener.ErrorCode.NEEDDOWNLOAD_FALSE_5);
}
}
}
protected void G(HashMap<Object, Object> hashMap) {
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) {
D();
} else {
Utils.Z0(this, str);
}
}
}
@Override
public void init() {
this.a = (Button) findViewById(R.id.btn_nav_left);
this.b = (TextView) findViewById(R.id.tv_nav_title);
this.d = (ImmersiveStatusBar) findViewById(2131298726);
this.b.setText("场控");
this.b.setSelected(true);
this.a.setOnClickListener(this.f2717h);
this.c = (ListView) findViewById(R.id.lv_glory_user);
if (this.f2716g == this.f2715f.getUserId()) {
this.f2719j = 1;
}
r0 r0Var = new r0(this, this.f2719j, this.f2717h);
this.f2714e = r0Var;
this.c.setAdapter((ListAdapter) r0Var);
this.f2714e.a(this.f2718i);
D();
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.motoring_more_layout);
u0.q(this, null);
Intent intent = getIntent();
this.f2718i = (ArrayList) intent.getSerializableExtra("list");
this.f2716g = intent.getIntExtra("id", 0);
this.f2715f = com.showself.utils.r0.y(this);
this.f2717h = new c(this, null);
init();
u0.i(this, this.d, R.color.navigationbar_bg, true);
}
@Override
protected void onResume() {
super.onResume();
}
@Override
protected void onStop() {
super.onStop();
}
@Override
public void refresh(Object... objArr) {
}
}