导航菜单

页面标题

页面副标题

Clash Legends v0.0.1 - TansactionSuccessActivity.java 源代码

正在查看: Clash Legends v0.0.1 应用的 TansactionSuccessActivity.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 TansactionSuccessActivity extends AppCompatActivity {
    Context context;
    Resources resources;

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(2131558486);
        Context locale = LocaleHelper.setLocale(this);
        this.context = locale;
        this.resources = locale.getResources();
        Button home = (Button) findViewById(2131363412);
        TextView successtid = (TextView) findViewById(2131363413);
        TextView successtamount = (TextView) findViewById(2131363411);
        TextView successstatus = (TextView) findViewById(2131363414);
        successstatus.setText(this.resources.getString(2131887110));
        Intent intent = getIntent();
        String tid = intent.getStringExtra("TID");
        String tamount = intent.getStringExtra("TAMOUNT");
        String selectedcurrency = intent.getStringExtra("selected");
        successtid.setText(this.resources.getString(2131887046) + " : #" + tid);
        successtamount.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);
            successtamount.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) {
                TansactionSuccessActivity.this.m214xa7f11070(view);
            }
        });
        Intent intent1 = new Intent();
        intent1.setAction("reload");
        sendBroadcast(intent1);
    }

    void m214xa7f11070(View view) {
        startActivity(new Intent(getApplicationContext(), (Class<?>) MyWalletActivity.class));
    }
}