正在查看: 95爱播免登录版 v3.1.9 应用的 ProfileValueActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 95爱播免登录版 v3.1.9 应用的 ProfileValueActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.showself.ui;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.mifeng.ui.R;
import com.showself.domain.ProfileValueInfo;
import com.showself.service.g;
import com.showself.utils.Utils;
import com.showself.utils.r0;
import com.xiaomi.mipush.sdk.Constants;
import java.util.Calendar;
import java.util.HashMap;
public class ProfileValueActivity extends c {
private Button a;
private Bundle b;
private int c;
private ProfileValueInfo d;
private ProfileValueInfo f2803e;
private LinearLayout f2804f;
private RelativeLayout f2805g;
private TextView f2806h;
private TextView f2807i;
private TextView f2808j;
private TextView f2809k;
private TextView l;
private TextView m;
private TextView n;
public Handler o = new a();
class a extends Handler {
a() {
}
@Override
public void handleMessage(Message message) {
super.handleMessage(message);
Calendar calendar = Calendar.getInstance();
calendar.setTime(ProfileValueActivity.this.d.getDateline());
int i2 = calendar.get(1);
int i3 = calendar.get(2);
int i4 = calendar.get(5);
int i5 = calendar.get(10);
int i6 = calendar.get(12);
String str = "" + i6;
int i7 = i5 <= 12 ? i5 + 12 : i5 - 12;
if (i6 < 10) {
str = "0" + i6;
}
String str2 = ProfileValueActivity.this.getString(R.string.cut_off) + i2 + ProfileValueActivity.this.getString(R.string.year) + (i3 + 1) + ProfileValueActivity.this.getString(R.string.month) + i4 + ProfileValueActivity.this.getString(R.string.day) + " " + i7 + Constants.COLON_SEPARATOR + str;
if (message.what != 1) {
return;
}
ProfileValueActivity.this.f2806h.setText(ProfileValueActivity.this.d.getMoney() + "");
ProfileValueActivity.this.f2807i.setText(ProfileValueActivity.this.d.getSpendmoney() + "");
ProfileValueActivity.this.f2808j.setText(ProfileValueActivity.this.d.getTotalscore() + ProfileValueActivity.this.getString(R.string.score));
ProfileValueActivity.this.f2809k.setText(ProfileValueActivity.this.d.getTotalrankdesc() + "");
ProfileValueActivity.this.l.setText(str2);
ProfileValueActivity.this.m.setText(ProfileValueActivity.this.d.getLasttotalscore() + ProfileValueActivity.this.getString(R.string.score));
ProfileValueActivity.this.n.setText(ProfileValueActivity.this.d.getChangescore() + ProfileValueActivity.this.getString(R.string.score));
}
}
private class b implements View.OnClickListener {
private b() {
}
@Override
public void onClick(View view) {
if (view.getId() != 2131296506) {
return;
}
ProfileValueActivity.this.finish();
}
b(ProfileValueActivity profileValueActivity, a aVar) {
this();
}
}
private void H(int i2, int i3) {
HashMap hashMap = new HashMap();
hashMap.put("fuid", Integer.valueOf(i2));
hashMap.put("category", Integer.valueOf(i3));
addTask(new com.showself.service.f(10014, hashMap), this);
}
@Override
public void init() {
r0.y(this);
Button button = (Button) findViewById(R.id.btn_profile_value_leftButton);
this.a = button;
button.setOnClickListener(new b(this, null));
this.f2804f = (LinearLayout) findViewById(R.id.ll_profile_value);
RelativeLayout relativeLayout = (RelativeLayout) LayoutInflater.from(this).inflate(R.layout.profile_value_first, (ViewGroup) null);
this.f2805g = relativeLayout;
this.f2806h = (TextView) relativeLayout.findViewById(R.id.tv_value_first_overage_value);
this.f2807i = (TextView) this.f2805g.findViewById(R.id.tv_value_first_cost_value);
this.f2808j = (TextView) this.f2805g.findViewById(R.id.tv_value_first_value);
this.f2809k = (TextView) this.f2805g.findViewById(R.id.tv_value_first_total_rank);
this.l = (TextView) this.f2805g.findViewById(R.id.tv_value_first_time);
this.m = (TextView) this.f2805g.findViewById(R.id.tv_value_first_total);
this.n = (TextView) this.f2805g.findViewById(R.id.tv_value_first_add);
this.f2804f.removeAllViews();
this.f2804f.addView(this.f2805g);
if (this.f2803e == null) {
H(this.c, 5);
}
}
@Override
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.profile_value_tab);
Bundle extras = getIntent().getExtras();
this.b = extras;
extras.getInt("gender");
this.c = this.b.getInt("id");
if (this.b.containsKey("userId")) {
this.b.getInt("userId");
}
init();
}
@Override
protected void onResume() {
super.onResume();
}
@Override
protected void onStop() {
super.onStop();
}
@Override
public void refresh(Object... objArr) {
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 == 10014) {
if (intValue2 == com.showself.net.e.m1) {
ProfileValueInfo profileValueInfo = (ProfileValueInfo) hashMap.get("profilevalue");
this.f2803e = profileValueInfo;
this.d = profileValueInfo;
Message message = new Message();
message.what = 1;
this.o.sendMessage(message);
} else {
Utils.Z0(this, str);
}
}
}
g.i(this);
}
}