正在查看: St.John's v1.0.9 应用的 TransactionCancelACtivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: St.John's v1.0.9 应用的 TransactionCancelACtivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.mcb.stjohnsemschool.activity;
import android.app.Activity;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import com.google.firebase.analytics.FirebaseAnalytics;
public class TransactionCancelACtivity extends AppCompatActivity {
public static Activity activity;
Button cancel;
Typeface mLatoFont;
TextView txt;
TextView txt2;
public void onBackPressed() {
}
protected void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.activity_transaction_cancel);
activity = this;
this.mLatoFont = Typeface.createFromAsset(getAssets(), "Roboto-Regular.ttf");
getSupportActionBar().setTitle("Payment Result");
getSupportActionBar().setDisplayHomeAsUpEnabled(false);
this.txt = (TextView) findViewById(R.id.txt_cancel);
this.txt2 = (TextView) findViewById(R.id.txt_cancel2);
this.cancel = (Button) findViewById(R.id.cancel);
this.txt.setText(getString(R.string.transaction));
this.txt.setTypeface(this.mLatoFont);
this.txt2.setTypeface(this.mLatoFont);
this.cancel.setTypeface(this.mLatoFont);
this.cancel.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if (SelectPaymentGateWayActivity.mActivityObj != null) {
SelectPaymentGateWayActivity.mActivityObj.finish();
}
if (OnlinePaymentActivity.myActivity != null) {
OnlinePaymentActivity.myActivity.finish();
}
if (TransactionCancelACtivity.activity != null) {
TransactionCancelACtivity.activity.finish();
}
}
});
}
protected void onResume() {
super.onResume();
String string = getSharedPreferences("", 0).getString("usernamekey", "");
Bundle bundle = new Bundle();
bundle.putString("user_name", string);
FirebaseAnalytics.getInstance(this).logEvent("PAGE_TRANSACTION_CANCELLED", bundle);
}
}