四虎影院 v4.1.6版本的 MD5 值为:3c86dc44d368396917a29935d39af88b
以下内容为反编译后的 ExpandCenterActivity.java 源代码,内容仅作参考
package cn.luckxy.vod.ui.expand;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.fragment.app.FragmentActivity;
import cn.luckxy.vod.R;
import cn.luckxy.vod.base.BaseActivity;
import cn.luckxy.vod.bean.ExpandCenter;
import cn.luckxy.vod.bean.UserInfoBean;
import cn.luckxy.vod.ui.share.ShareActivity;
import com.blankj.utilcode.util.ToastUtils;
import g.a.b.netservice.VodService;
import g.a.b.utils.j;
import h.a.a.c;
import h.a.a.p.q.c.l;
import h.a.a.t.h;
import h.e.a.a.a.exception.d;
import java.util.HashMap;
import kotlin.Metadata;
import kotlin.v1.internal.i0;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u00012\u00020\u0002B\u0005¢\u0006\u0002\u0010\u0003J\b\u0010\u0004\u001a\u00020\u0005H\u0002J\b\u0010\u0006\u001a\u00020\u0007H\u0014J\b\u0010\b\u001a\u00020\u0005H\u0002J\b\u0010\t\u001a\u00020\u0005H\u0014J\b\u0010\n\u001a\u00020\u0005H\u0014J\u0012\u0010\u000b\u001a\u00020\u00052\b\u0010\f\u001a\u0004\u0018\u00010\rH\u0016¨\u0006\u000e"}, d2 = {"Lcn/luckxy/vod/ui/expand/ExpandCenterActivity;", "Lcn/luckxy/vod/base/BaseActivity;", "Landroid/view/View$OnClickListener;", "()V", "getExpandCenter", "", "getLayoutResID", "", "getUserInfo", "initData", "initView", "onClick", "v", "Landroid/view/View;", "app_release"}, k = 1, mv = {1, 1, 15})
public final class ExpandCenterActivity extends BaseActivity implements View.OnClickListener {
public HashMap f3232f;
public static final class a extends h.e.a.a.a.b.d.b<ExpandCenter> {
public a(Context context) {
super(context, 0, false, false, 14, null);
}
@Override
public void a(@NotNull d dVar) {
i0.f(dVar, "e");
}
@Override
public void a(@NotNull ExpandCenter expandCenter) {
i0.f(expandCenter, "data");
TextView textView = (TextView) ExpandCenterActivity.this.a(R.id.tv_count1);
i0.a((Object) textView, "tv_count1");
StringBuilder sb = new StringBuilder();
sb.append("享受每日影片观影");
ExpandCenter.V1Bean a = expandCenter.a();
i0.a((Object) a, "data.v1");
sb.append(a.b());
sb.append((char) 27425);
textView.setText(sb.toString());
TextView textView2 = (TextView) ExpandCenterActivity.this.a(R.id.tv_person2);
i0.a((Object) textView2, "tv_person2");
StringBuilder sb2 = new StringBuilder();
sb2.append("推广");
ExpandCenter.V2Bean b = expandCenter.b();
i0.a((Object) b, "data.v2");
sb2.append(b.a());
sb2.append((char) 20154);
textView2.setText(sb2.toString());
TextView textView3 = (TextView) ExpandCenterActivity.this.a(R.id.tv_count2);
i0.a((Object) textView3, "tv_count2");
StringBuilder sb3 = new StringBuilder();
sb3.append("享受每日影片观影");
ExpandCenter.V2Bean b2 = expandCenter.b();
i0.a((Object) b2, "data.v2");
sb3.append(b2.b());
sb3.append((char) 27425);
textView3.setText(sb3.toString());
TextView textView4 = (TextView) ExpandCenterActivity.this.a(R.id.tv_person3);
i0.a((Object) textView4, "tv_person3");
StringBuilder sb4 = new StringBuilder();
sb4.append("推广");
ExpandCenter.V3Bean c2 = expandCenter.c();
i0.a((Object) c2, "data.v3");
sb4.append(c2.a());
sb4.append((char) 20154);
textView4.setText(sb4.toString());
TextView textView5 = (TextView) ExpandCenterActivity.this.a(R.id.tv_count3);
i0.a((Object) textView5, "tv_count3");
StringBuilder sb5 = new StringBuilder();
sb5.append("享受每日影片观影");
ExpandCenter.V3Bean c3 = expandCenter.c();
i0.a((Object) c3, "data.v3");
sb5.append(c3.b());
sb5.append((char) 27425);
textView5.setText(sb5.toString());
TextView textView6 = (TextView) ExpandCenterActivity.this.a(R.id.tv_person4);
i0.a((Object) textView6, "tv_person4");
StringBuilder sb6 = new StringBuilder();
sb6.append("推广");
ExpandCenter.V4Bean d2 = expandCenter.d();
i0.a((Object) d2, "data.v4");
sb6.append(d2.a());
sb6.append((char) 20154);
textView6.setText(sb6.toString());
TextView textView7 = (TextView) ExpandCenterActivity.this.a(R.id.tv_count4);
i0.a((Object) textView7, "tv_count4");
StringBuilder sb7 = new StringBuilder();
sb7.append("享受每日影片观影");
ExpandCenter.V4Bean d3 = expandCenter.d();
i0.a((Object) d3, "data.v4");
sb7.append(d3.b());
sb7.append((char) 27425);
textView7.setText(sb7.toString());
TextView textView8 = (TextView) ExpandCenterActivity.this.a(R.id.tv_person5);
i0.a((Object) textView8, "tv_person5");
StringBuilder sb8 = new StringBuilder();
sb8.append("推广");
ExpandCenter.V5Bean e2 = expandCenter.e();
i0.a((Object) e2, "data.v5");
sb8.append(e2.a());
sb8.append((char) 20154);
textView8.setText(sb8.toString());
TextView textView9 = (TextView) ExpandCenterActivity.this.a(R.id.tv_count5);
i0.a((Object) textView9, "tv_count5");
StringBuilder sb9 = new StringBuilder();
sb9.append("享受每日影片观影");
ExpandCenter.V5Bean e3 = expandCenter.e();
i0.a((Object) e3, "data.v5");
sb9.append(e3.b());
sb9.append((char) 27425);
textView9.setText(sb9.toString());
}
}
public static final class b extends h.e.a.a.a.b.d.a<UserInfoBean> {
public b() {
super(false, 1, null);
}
@Override
public void a(@NotNull UserInfoBean userInfoBean) {
i0.f(userInfoBean, "data");
TextView textView = (TextView) ExpandCenterActivity.this.a(R.id.tv_nick);
i0.a((Object) textView, "tv_nick");
textView.setText(userInfoBean.s());
String B = userInfoBean.B();
i0.a((Object) B, "data.user_portrait");
if (B.length() > 0) {
c.a((FragmentActivity) ExpandCenterActivity.this.e()).load("https://cjt521.com/" + userInfoBean.B()).a((h.a.a.t.a<?>) h.c(new l())).a((ImageView) ExpandCenterActivity.this.a(R.id.iv_avatar));
} else {
c.a((FragmentActivity) ExpandCenterActivity.this.e()).a(Integer.valueOf(com.movie.all.R.drawable.ic_default_avator)).a((h.a.a.t.a<?>) h.c(new l())).a((ImageView) ExpandCenterActivity.this.a(R.id.iv_avatar));
}
String n2 = userInfoBean.n();
if (n2 == null) {
return;
}
switch (n2.hashCode()) {
case 49:
if (n2.equals("1")) {
((ImageView) ExpandCenterActivity.this.a(R.id.iv_start_level)).setBackgroundResource(com.movie.all.R.drawable.vip1);
((ImageView) ExpandCenterActivity.this.a(R.id.iv_end_level)).setBackgroundResource(com.movie.all.R.drawable.vip2);
TextView textView2 = (TextView) ExpandCenterActivity.this.a(R.id.tv_next);
i0.a((Object) textView2, "tv_next");
textView2.setText("距离下一等级还差" + userInfoBean.c() + (char) 20154);
return;
}
return;
case 50:
if (n2.equals("2")) {
((ImageView) ExpandCenterActivity.this.a(R.id.iv_start_level)).setBackgroundResource(com.movie.all.R.drawable.vip2);
((ImageView) ExpandCenterActivity.this.a(R.id.iv_end_level)).setBackgroundResource(com.movie.all.R.drawable.vip3);
TextView textView3 = (TextView) ExpandCenterActivity.this.a(R.id.tv_next);
i0.a((Object) textView3, "tv_next");
textView3.setText("距离下一等级还差" + userInfoBean.c() + (char) 20154);
return;
}
return;
case 51:
if (n2.equals("3")) {
((ImageView) ExpandCenterActivity.this.a(R.id.iv_start_level)).setBackgroundResource(com.movie.all.R.drawable.vip3);
((ImageView) ExpandCenterActivity.this.a(R.id.iv_end_level)).setBackgroundResource(com.movie.all.R.drawable.vip4);
TextView textView4 = (TextView) ExpandCenterActivity.this.a(R.id.tv_next);
i0.a((Object) textView4, "tv_next");
textView4.setText("距离下一等级还差" + userInfoBean.c() + (char) 20154);
return;
}
return;
case 52:
if (n2.equals("4")) {
((ImageView) ExpandCenterActivity.this.a(R.id.iv_start_level)).setBackgroundResource(com.movie.all.R.drawable.vip4);
((ImageView) ExpandCenterActivity.this.a(R.id.iv_end_level)).setBackgroundResource(com.movie.all.R.drawable.vip5);
TextView textView5 = (TextView) ExpandCenterActivity.this.a(R.id.tv_next);
i0.a((Object) textView5, "tv_next");
textView5.setText("距离下一等级还差" + userInfoBean.c() + (char) 20154);
return;
}
return;
case 53:
if (n2.equals("5")) {
((ImageView) ExpandCenterActivity.this.a(R.id.iv_start_level)).setBackgroundResource(com.movie.all.R.drawable.vip5);
((ImageView) ExpandCenterActivity.this.a(R.id.iv_end_level)).setBackgroundResource(com.movie.all.R.drawable.vip5);
TextView textView6 = (TextView) ExpandCenterActivity.this.a(R.id.tv_next);
i0.a((Object) textView6, "tv_next");
textView6.setText("已达到最高VIP级别");
return;
}
return;
default:
return;
}
}
@Override
public void a(@NotNull d dVar) {
i0.f(dVar, "e");
ToastUtils.showShort(dVar.b(), new Object[0]);
}
}
private final void i() {
VodService vodService = (VodService) j.INSTANCE.a(VodService.class);
if (g.a.b.utils.a.a(vodService)) {
return;
}
h.e.a.a.a.b.a.a(e(), vodService.n(), new a(e()));
}
private final void j() {
VodService vodService = (VodService) j.INSTANCE.a(VodService.class);
if (g.a.b.utils.a.a(vodService)) {
return;
}
h.e.a.a.a.b.a.a(this, vodService.r(), new b());
}
@Override
public View a(int i2) {
if (this.f3232f == null) {
this.f3232f = new HashMap();
}
View view = (View) this.f3232f.get(Integer.valueOf(i2));
if (view != null) {
return view;
}
View findViewById = findViewById(i2);
this.f3232f.put(Integer.valueOf(i2), findViewById);
return findViewById;
}
@Override
public void b() {
HashMap hashMap = this.f3232f;
if (hashMap != null) {
hashMap.clear();
}
}
@Override
public int d() {
return com.movie.all.R.layout.activity_expand_center;
}
@Override
public void g() {
super.g();
((RelativeLayout) a(R.id.rlBack)).setOnClickListener(this);
((TextView) a(R.id.tv_my_expand)).setOnClickListener(this);
((RelativeLayout) a(R.id.rl_share)).setOnClickListener(this);
}
@Override
public void initData() {
super.initData();
j();
i();
}
@Override
public void onClick(@Nullable View v) {
if (i0.a(v, (RelativeLayout) a(R.id.rlBack))) {
finish();
} else if (i0.a(v, (TextView) a(R.id.tv_my_expand))) {
startActivity(new Intent(this, (Class<?>) MyExpandActivity.class));
} else if (i0.a(v, (RelativeLayout) a(R.id.rl_share))) {
startActivity(new Intent(this, (Class<?>) ShareActivity.class));
}
}
}