和通讯录 v4.2.0版本的 MD5 值为:f213fa766dccbfebde0dd8add5534518
以下内容为反编译后的 DirectoryIntroduceActivity.java 源代码,内容仅作参考
package com.chinamobile.contacts.im.directory;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.chinamobile.contacts.im.C0019R;
import com.chinamobile.contacts.im.config.LoginInfoSP;
import com.chinamobile.contacts.im.setting.BrowserActivity;
import com.chinamobile.contacts.im.sync.c.x;
import com.chinamobile.contacts.im.ui.ICloudActivity;
import com.chinamobile.contacts.im.view.HintsDialog;
import com.chinamobile.contacts.im.view.ProgressDialog;
import com.chinamobile.contacts.im.view.actionbar.IcloudActionBar;
import com.umeng.analytics.AspMobclickAgent;
public class DirectoryIntroduceActivity extends ICloudActivity implements View.OnClickListener {
private TextView f2163a;
private TextView f2164b;
private TextView c;
private Button d;
private TextView e;
private HintsDialog g;
private ProgressDialog h;
private boolean f = false;
private Handler i = new b(this);
@Override
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(C0019R.layout.numbers_manager);
b();
a();
}
private void a() {
IcloudActionBar icloudActionBar = getIcloudActionBar();
icloudActionBar.setNavigationMode(3);
icloudActionBar.setDisplayAsUpTitle(getResources().getString(C0019R.string.vip_title));
icloudActionBar.setDisplayAsUpBack(0, this);
}
private void b() {
this.f2163a = (TextView) findViewById(C0019R.id.vip_detail);
this.f2164b = (TextView) findViewById(C0019R.id.charge);
this.c = (TextView) findViewById(C0019R.id.vip_isdg);
this.d = (Button) findViewById(C0019R.id.ok);
this.e = (TextView) findViewById(C0019R.id.help);
this.f = getIntent().getBooleanExtra("isgood", false);
c();
this.f2164b.setText(String.format(getResources().getString(C0019R.string.vip_charge), LoginInfoSP.getMobileCharge(this)));
this.d.setOnClickListener(this);
this.e.setOnClickListener(this);
}
public static Intent a(Context context, boolean z) {
Intent intent = new Intent(context, (Class<?>) DirectoryIntroduceActivity.class);
intent.putExtra("isgood", z);
return intent;
}
public void c() {
if (this.f) {
this.c.setText(String.format(getResources().getString(C0019R.string.vip_isdg), "已订购"));
this.d.setText("退订");
this.d.setBackgroundResource(C0019R.drawable.vip_td_bg);
} else {
this.c.setText(String.format(getResources().getString(C0019R.string.vip_isdg), "未订购"));
this.d.setText("升级为会员");
this.d.setBackgroundResource(C0019R.drawable.vip_dg);
}
}
@Override
public void onClick(View view) {
switch (view.getId()) {
case C0019R.id.iab_back_area:
finish();
return;
case C0019R.id.ok:
d();
return;
case C0019R.id.help:
g();
return;
default:
return;
}
}
private void d() {
if (!x.a(this)) {
f.a().c(this);
return;
}
if (this.h != null && this.h.isShowing()) {
this.h.dismiss();
}
if (this.f) {
f();
} else {
AspMobclickAgent.onEvent(this, "moreScreen_vip_get");
e();
}
}
private void e() {
this.g = new HintsDialog(this, "温馨提醒", "即时同步将收取功能费" + LoginInfoSP.getMobileCharge(this) + "元/月,你确认订购吗?");
this.g.setButton(new a(this), C0019R.string.sure, C0019R.string.cancel);
this.g.show();
}
private void f() {
this.g = new HintsDialog(this, getResources().getString(C0019R.string.common_reminder), "你确认退订会员特权吗?(由于本月功能费已收取,退订后次月生效)");
this.g.setButton(new e(this), C0019R.string.sure, C0019R.string.cancel);
this.g.show();
}
private void g() {
startActivity(BrowserActivity.createIntent(this, "http://pim1.10086.cn/getThirdHlp.action?os=hy&inSec=1&inThird=3", getString(C0019R.string.vip_help)));
}
}