正在查看: 新暖心缘 v8.1.1 应用的 UpdateActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 新暖心缘 v8.1.1 应用的 UpdateActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.luanxingyuan.app.activity;
import android.app.Activity;
import android.content.Intent;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;
import cn.jpush.android.api.JThirdPlatFormInterface;
import com.faceunity.wrapper.faceunity;
import com.luanxingyuan.app.base.AppManager;
import com.luanxingyuan.app.bean.UpdateBean;
import com.luanxingyuan.app.util.ToastUtil;
import com.tencent.qcloud.tim.uikit.R;
public class UpdateActivity extends Activity {
private UpdateBean f7098a;
class a implements View.OnClickListener {
a() {
}
@Override
public void onClick(View view) {
if (TextUtils.isEmpty(UpdateActivity.this.f7098a.t_download_url)) {
ToastUtil.showToast(2131820883);
return;
}
try {
Intent intent = new Intent();
intent.setAction("android.intent.action.VIEW");
intent.setData(Uri.parse(UpdateActivity.this.f7098a.t_download_url));
UpdateActivity.this.startActivity(intent);
} catch (Exception unused) {
ToastUtil.showToast("跳转失败");
}
}
}
public static void b(UpdateBean updateBean) {
if (AppManager.f().d().e()) {
return;
}
Intent intent = new Intent(AppManager.f(), (Class<?>) UpdateActivity.class);
intent.putExtra(JThirdPlatFormInterface.KEY_DATA, updateBean);
intent.addFlags(faceunity.FUAITYPE_HUMAN_PROCESSOR_DETECT);
AppManager.f().startActivity(intent);
}
@Override
public void onBackPressed() {
}
@Override
protected void onCreate(Bundle bundle) {
String string;
super.onCreate(bundle);
f6.e.C(this).x(true).o(R.color.black).g();
setContentView(2131493085);
getWindow().setBackgroundDrawable(new ColorDrawable(1056964608));
this.f7098a = (UpdateBean) getIntent().getSerializableExtra(JThirdPlatFormInterface.KEY_DATA);
((TextView) findViewById(2131296608)).setText(this.f7098a.t_version_depict);
TextView textView = (TextView) findViewById(2131297340);
String str = this.f7098a.t_version;
if (TextUtils.isEmpty(str)) {
string = getString(2131821064);
} else {
string = getResources().getString(2131821065) + str;
}
textView.setText(string);
((TextView) findViewById(2131297397)).setOnClickListener(new a());
}
}