导航菜单

页面标题

页面副标题

BAM Crawford v6.14.1 - AppUtilityActivity.java 源代码

正在查看: BAM Crawford v6.14.1 应用的 AppUtilityActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.subsplash.thechurchapp;

import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.TextView;
import androidx.appcompat.app.c;
import com.subsplash.thechurchapp.api.h;
import com.subsplash.thechurchapp.dataObjects.AppLoadContext;
import com.subsplash.util.ApplicationInstance;
import com.subsplash.util.i;
import com.subsplash.util.r;
import com.subsplash.util.v;
import java.util.Calendar;
import okhttp3.HttpUrl;
import pi.n;
import pi.o;
import pi.q;

public class AppUtilityActivity extends c implements com.subsplash.thechurchapp.api.a {

    class a implements View.OnClickListener {
        a() {
        }

        @Override
        public void onClick(View view) {
            AppUtilityActivity.this.g0();
        }
    }

    class b implements TextView.OnEditorActionListener {
        b() {
        }

        @Override
        public boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) {
            if (i != 4) {
                return true;
            }
            AppUtilityActivity.this.e0().performClick();
            return true;
        }
    }

    private void Z() {
        d0().setInputType(524288);
        d0().setOnEditorActionListener(new b());
        d0().setText(f0());
    }

    private void a0() {
        e0().setOnClickListener(new a());
    }

    private void b0() {
        TextView textView = (TextView) findViewById(n.utility_version);
        if (textView == null) {
            return;
        }
        textView.setText(String.format(getResources().getString(q.utility_version), "6.14.1"));
    }

    private void c0() {
        TextView textView = (TextView) findViewById(n.utility_copyright);
        if (textView == null) {
            return;
        }
        textView.setText(String.format(getResources().getString(q.utility_copyright), Integer.valueOf(Calendar.getInstance().get(1))));
    }

    private EditText d0() {
        return (EditText) findViewById(n.utility_input);
    }

    public ImageButton e0() {
        return (ImageButton) findViewById(n.utility_submit);
    }

    private String f0() {
        return TheChurchApp.t().getString("apputility_last_code", HttpUrl.FRAGMENT_ENCODE_SET);
    }

    public void g0() {
        TheChurchApp.h(this);
        String upperCase = d0().getText().toString().toUpperCase();
        i0(upperCase);
        MainActivity.A0(upperCase, this, 0);
    }

    private void h0() {
        i.o(d0(), this);
    }

    private void i0(String str) {
        SharedPreferences.Editor edit = TheChurchApp.t().edit();
        edit.putString("apputility_last_code", str);
        edit.commit();
    }

    @Override
    public void d(ApplicationInstance applicationInstance, AppLoadContext appLoadContext, Exception exc) {
    }

    @Override
    public void k(ApplicationInstance applicationInstance) {
    }

    public void onCreate(Bundle bundle) {
        super/*androidx.fragment.app.d*/.onCreate(bundle);
        if (!r.m()) {
            setRequestedOrientation(7);
        }
        if (K() != null) {
            K().l();
        }
        if (ApplicationInstance.getInstanceCount() <= 0) {
            h.o().y(this, "HTF22N", this);
        }
        setContentView(o.utility);
        h0();
        a0();
        Z();
        b0();
        c0();
        v.f();
        TheChurchApp.B();
        if (TheChurchApp.r.size() > 0) {
            g0();
        }
    }

    public void onDestroy() {
        super.onDestroy();
        if (isFinishing()) {
            ApplicationInstance.popInstance();
        }
    }
}