正在查看: Clash Legends v0.0.1 应用的 TransactionFailActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Clash Legends v0.0.1 应用的 TransactionFailActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.clash.legends.ui.activities;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.graphics.Typeface;
import android.os.Bundle;
import android.text.SpannableStringBuilder;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import com.clash.legends.utils.CustomTypefaceSpan;
import com.clash.legends.utils.LocaleHelper;
public class TransactionFailActivity extends AppCompatActivity {
Context context;
Resources resources;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(2131558489);
Context locale = LocaleHelper.setLocale(this);
this.context = locale;
this.resources = locale.getResources();
Button home = (Button) findViewById(2131362337);
TextView failtid = (TextView) findViewById(2131362338);
TextView failtamount = (TextView) findViewById(2131362336);
TextView failstatus = (TextView) findViewById(2131362339);
failstatus.setText(this.resources.getString(2131887109));
Intent intent = getIntent();
String tid = intent.getStringExtra("TID");
String tamount = intent.getStringExtra("TAMOUNT");
String selectedcurrency = intent.getStringExtra("selected");
failtid.setText(this.resources.getString(2131887046) + " : #" + tid);
failtamount.setText(this.resources.getString(2131887045) + " : " + selectedcurrency + tamount);
if (TextUtils.equals(selectedcurrency, "₹")) {
Typeface font = Typeface.DEFAULT_BOLD;
SpannableStringBuilder SS = new SpannableStringBuilder(this.resources.getString(2131886107));
SS.setSpan(new CustomTypefaceSpan("", font), 0, 1, 34);
failtamount.setText(TextUtils.concat(this.resources.getString(2131887045) + " : ", SS, tamount));
}
home.setText(this.resources.getString(2131886480));
home.setOnClickListener(new View.OnClickListener() {
@Override
public final void onClick(View view) {
TransactionFailActivity.this.m219xbb1032d1(view);
}
});
Intent intent1 = new Intent();
intent1.setAction("reload");
sendBroadcast(intent1);
}
void m219xbb1032d1(View view) {
startActivity(new Intent(getApplicationContext(), (Class<?>) MyWalletActivity.class));
}
}