正在查看: 95爱播免登录版 v3.1.9 应用的 ConvertMoneyActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 95爱播免登录版 v3.1.9 应用的 ConvertMoneyActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.showself.ui;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.f.a.a.a.b;
import com.mifeng.ui.R;
import com.r.b.z;
import com.showself.domain.ConvertMoneyInfo;
import com.showself.service.g;
import com.showself.utils.Utils;
import com.showself.utils.u0;
import com.showself.view.ImmersiveStatusBar;
import java.util.ArrayList;
import java.util.HashMap;
import org.cocos2dx.lib.GameControllerDelegate;
import org.json.JSONArray;
public class ConvertMoneyActivity extends c implements View.OnClickListener {
private TextView a;
private TextView b;
private TextView c;
private ImageView d;
private ImmersiveStatusBar f2623e;
private int f2627i;
private int f2628j;
private JSONArray f2629k;
private z m;
private RecyclerView n;
private int p;
private int f2624f = 0;
private int f2625g = 20;
private boolean f2626h = false;
private ArrayList<ConvertMoneyInfo> l = new ArrayList<>();
private int o = -100;
class a implements b.h {
a() {
}
public void c(com.f.a.a.a.b bVar, View view, int i2) {
for (int i3 = 0; i3 < ConvertMoneyActivity.this.l.size(); i3++) {
((ConvertMoneyInfo) ConvertMoneyActivity.this.l.get(i3)).setSelect(false);
}
((ConvertMoneyInfo) ConvertMoneyActivity.this.l.get(i2)).setSelect(true);
ConvertMoneyActivity convertMoneyActivity = ConvertMoneyActivity.this;
convertMoneyActivity.o = ((ConvertMoneyInfo) convertMoneyActivity.l.get(i2)).getC_id();
ConvertMoneyActivity convertMoneyActivity2 = ConvertMoneyActivity.this;
convertMoneyActivity2.p = ((ConvertMoneyInfo) convertMoneyActivity2.l.get(i2)).getMoney();
ConvertMoneyActivity.this.m.notifyDataSetChanged();
}
}
private void D(int i2) {
Utils.U0(this);
HashMap hashMap = new HashMap();
hashMap.put("c_id", Integer.valueOf(i2));
addTask(new com.showself.service.f(20011, hashMap), this);
}
private void E() {
if (this.f2626h) {
return;
}
this.f2626h = true;
HashMap hashMap = new HashMap();
hashMap.put("type", "IAP");
hashMap.put("startindex", Integer.valueOf(this.f2624f));
hashMap.put("recordnum", Integer.valueOf(this.f2625g));
hashMap.put("subcategory", "android");
addTask(new com.showself.service.f(GameControllerDelegate.BUTTON_Y, hashMap), this);
}
private void F() {
this.a.setText(this.f2627i + "");
this.b.setText(this.f2628j + "");
}
@Override
public void init() {
this.d = (ImageView) findViewById(R.id.iv_convert_back);
this.a = (TextView) findViewById(R.id.tv_convert_money);
this.b = (TextView) findViewById(R.id.tv_convert_jewel);
this.c = (TextView) findViewById(R.id.tv_convert_btn);
this.n = findViewById(R.id.convert_recycler);
this.f2623e = (ImmersiveStatusBar) findViewById(2131298726);
this.d.setOnClickListener(this);
this.c.setOnClickListener(this);
GridLayoutManager gridLayoutManager = new GridLayoutManager(this, 3);
gridLayoutManager.setOrientation(1);
this.n.setLayoutManager(gridLayoutManager);
z zVar = new z(R.layout.layout_convert_item, this.l);
this.m = zVar;
zVar.i0(new a());
this.n.setAdapter(this.m);
E();
}
@Override
@SuppressLint({"NewApi"})
public void onClick(View view) {
int i2;
int id = view.getId();
if (id == 2131297102) {
onBackPressed();
} else if (id == 2131299062 && (i2 = this.o) != -100) {
D(i2);
}
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.convert_money_layout);
u0.q(this, null);
init();
u0.i(this, this.f2623e, 2131099661, true);
}
@Override
public void refresh(Object... objArr) {
Utils.n(null);
this.f2626h = false;
g.i(this);
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 == 1008) {
if (intValue2 == com.showself.net.e.m1) {
this.f2627i = ((Integer) hashMap.get("money")).intValue();
this.f2628j = ((Integer) hashMap.get("diamond")).intValue();
Object obj = hashMap.get("convert");
if (obj != null) {
this.f2629k = (JSONArray) obj;
}
this.l.clear();
this.l.addAll(ConvertMoneyInfo.json2Bean(this.f2629k));
this.m.notifyDataSetChanged();
F();
return;
}
return;
}
if (intValue != 20011) {
return;
}
if (com.showself.net.e.m1 == intValue2) {
com.r.n.g j2 = com.r.n.g.j();
com.r.n.d c = com.r.n.d.c();
c.e("Bank");
c.f("ExchangeHome");
c.d("Exchange");
c.h(com.r.n.e.Click);
c.a("amount", Integer.valueOf(this.p));
j2.u(c.b());
this.f2627i = ((Integer) hashMap.get("money")).intValue();
this.f2628j = ((Integer) hashMap.get("diamonds")).intValue();
F();
} else {
com.r.n.g j3 = com.r.n.g.j();
com.r.n.d c2 = com.r.n.d.c();
c2.e("Bank");
c2.f("ExchangeHome");
c2.d("CancelExchange");
c2.h(com.r.n.e.Click);
j3.u(c2.b());
}
Utils.Z0(this, str);
}
}
}