TIM v2.3.1版本的 MD5 值为:d6957e3ee7ce901ccc491cefdea0da8c
以下内容为反编译后的 QQSpaceCleanActivity.java 源代码,内容仅作参考
package com.tencent.mobileqq.activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.tencent.mobileqq.app.IphoneTitleBarActivity;
import com.tencent.mobileqq.app.ThreadManager;
import com.tencent.mobileqq.emoticon.DownloadInfo;
import com.tencent.mobileqq.filemanager.core.UniformDownloadMgr;
import com.tencent.mobileqq.statistics.ReportController;
import com.tencent.mobileqq.utils.HttpDownloadUtil;
import com.tencent.mobileqq.utils.JumpQqPimSecureUtil;
import com.tencent.mobileqq.utils.NetworkUtil;
import com.tencent.tim.R;
public class QQSpaceCleanActivity extends IphoneTitleBarActivity implements View.OnClickListener, HttpDownloadUtil.DownloadInfoListener {
public static final String f85311a = "QQSpaceCleanActivity";
public static final String f85312b = "http://qqwx.qq.com/s?aid=index&g_f=429&mType=QQSpaceClean";
private View f10952a;
private Button f10953a;
private TextView f10954a;
private boolean f10956a;
private TextView f10957b;
private boolean f10958b;
private boolean f10959c;
public String f85313c = QQSettingCleanActivity.f10890b;
public Long f10955a = 0L;
@Override
public boolean doOnCreate(Bundle bundle) {
super.doOnCreate(bundle);
super.setContentView(R.layout.f58191name_res_0x7f030736);
setTitle(R.string.f64533name_res_0x7f0a17f4);
this.f10953a = (Button) findViewById(R.id.f55794name_res_0x7f09220f);
this.f10953a.setOnClickListener(this);
this.f10952a = findViewById(R.id.f53150name_res_0x7f0917bb);
this.f10952a.setVisibility(8);
this.f10954a = (TextView) findViewById(R.id.f55793name_res_0x7f09220e);
this.f10957b = (TextView) findViewById(R.id.f53101name_res_0x7f09178a);
((TextView) findViewById(R.id.f47677ivTitleBtnLeft)).setText(R.string.f65461name_res_0x7f0a1b99);
return true;
}
@Override
public void doOnStop() {
super.doOnStop();
if (this.f10959c) {
finish();
}
}
@Override
public void doOnResume() {
String str;
super.doOnResume();
if (this.f10959c) {
finish();
return;
}
this.f10956a = JumpQqPimSecureUtil.a(this);
this.f10958b = JumpQqPimSecureUtil.b(this);
if (!this.f10956a) {
str = "Enter SpaceCleanpage not install secure";
if (UniformDownloadMgr.m6277a().m6291a("http://qqwx.qq.com/s?aid=index&g_f=429&mType=QQSpaceClean")) {
this.f10959c = true;
this.f10957b.setText(R.string.f65354name_res_0x7f0a1b2e);
this.f10953a.setVisibility(8);
this.f10954a.setVisibility(8);
this.f10952a.setVisibility(0);
} else {
this.f10953a.setVisibility(0);
this.f10954a.setVisibility(0);
this.f10952a.setVisibility(8);
this.f10953a.setText(R.string.f64536name_res_0x7f0a17f7);
this.f10954a.setText(R.string.f64535name_res_0x7f0a17f6);
}
} else {
str = "Enter SpaceCleanpage install secure";
this.f10953a.setText(R.string.f64537name_res_0x7f0a17f8);
this.f10954a.setText(R.string.f64538name_res_0x7f0a17f9);
}
ReportController.b(null, "dc01332", "Safe_SpaceClean", "", "SpaceClean_", str, 0, 0, "", "", "", "");
}
@Override
public void onClick(View view) {
switch (view.getId()) {
case R.id.f55794name_res_0x7f09220f:
if (!this.f10956a) {
ThreadManager.d(new lcm(this));
this.f10959c = true;
this.f10957b.setText(R.string.f65354name_res_0x7f0a1b2e);
this.f10953a.setVisibility(8);
this.f10954a.setVisibility(8);
this.f10952a.setVisibility(0);
ReportController.b(null, "dc01332", "Safe_SpaceClean", "", "SpaceClean_", "click on bluebtn download", 0, 0, "", "", "", "");
return;
}
JumpQqPimSecureUtil.a(this, "mobileqq", JumpQqPimSecureUtil.TokenDestViewId.f);
ReportController.b(null, "dc01332", "Safe_SpaceClean", "", "SpaceClean_", "click on bluebtn run_clean", 0, 0, "", "", "", "");
return;
default:
return;
}
}
@Override
public boolean a(DownloadInfo downloadInfo) {
if (downloadInfo.f89074b == 0) {
this.f10955a = Long.valueOf(downloadInfo.e);
if (NetworkUtil.e(this) && this.f10955a.longValue() > 0) {
Bundle bundle = new Bundle();
bundle.putString(UniformDownloadMgr.f23239b, this.f85313c);
bundle.putLong(UniformDownloadMgr.f23240c, this.f10955a.longValue());
UniformDownloadMgr.m6277a().m6293b("http://qqwx.qq.com/s?aid=index&g_f=429&mType=QQSpaceClean", bundle);
return true;
}
} else {
this.f10955a = 0L;
}
runOnUiThread(new lcn(this));
return true;
}
}