导航菜单

页面标题

页面副标题

SpeedCash v6.5.1482 - ResetActivity.java 源代码

正在查看: SpeedCash v6.5.1482 应用的 ResetActivity.java JAVA 源代码文件

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


package com.bm.sc.bebasbayar.ui.activity.auth;

import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.Button;
import androidx.annotation.CallSuper;
import androidx.annotation.LayoutRes;
import com.bm.sc.bebasbayar.R;
import com.bm.sc.bebasbayar.helper.Affinity;
import com.bm.sc.bebasbayar.helper.EventHelper;
import com.bm.sc.bebasbayar.helper.FirebaseHelper;
import com.bm.sc.bebasbayar.helper.WidgetHelper;
import com.bm.sc.bebasbayar.ui.widget.SerialEditText;
import com.bm.sc.util.common.Var;
import java.util.HashMap;

public class ResetActivity extends AuthActivity implements View.OnClickListener, TextWatcher {
    public SerialEditText d;
    public Button e;
    public View f;
    public String g;

    public static Bundle getBundle(AuthActivity authActivity, String str) {
        Bundle bundle = new Bundle();
        bundle.putString("phone", str);
        bundle.putAll(authActivity.getGPSBundle());
        return bundle;
    }

    @Override
    public void afterTextChanged(Editable editable) {
        if (editable != null) {
            WidgetHelper.setReadonly(this.e, editable.length() < 9, false);
        }
    }

    @Override
    public void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
    }

    @Override
    @LayoutRes
    public int getLayoutResource() {
        return R.layout.activity_auth_reset;
    }

    @Override
    public int getRootLayoutId() {
        return R.id.layout_root;
    }

    public final void h() {
        String value = this.d.getValue();
        if (value.isEmpty()) {
            Affinity.info(this, false, "Silakan isi nomor HP Anda");
            return;
        }
        this.g = value;
        HashMap hashMap = new HashMap();
        hashMap.put("app_latitude", "0");
        hashMap.put("app_longitude", "0");
        hashMap.put("app_gps_state", "0");
        hashMap.put("app_uri", Var.toString(getApp_uri(), ""));
        FirebaseHelper.sendEventBoard(this, this.g, "", getClass().getSimpleName().replace("Activity", "") + "Input", hashMap);
        Affinity.launch(this, OTPCallInfoActivity.class, OTPCallInfoActivity.getBundle(this, this.g, 0));
    }

    @Override
    public void onClick(View view) {
        if (view.getId() == 2131362293) {
            h();
        }
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        EventHelper.sendAllEvents(this, FirebaseHelper.EVENT_SCREEN_VIEW, getClass().getSimpleName().replace("Activity", ""));
        if (bundle != null) {
            this.g = bundle.getString("phone", "");
        } else if (getIntent().getExtras() != null) {
            this.g = getIntent().getExtras().getString("phone", "");
        } else {
            this.g = "";
        }
        this.f = findViewById(R.id.img_pin);
        findViewById(2131366302);
        ?? r4 = (SerialEditText) findViewById(R.id.input_handphone);
        this.d = r4;
        r4.addTextChangedListener(this);
        Button button = (Button) findViewById(R.id.btn_check);
        this.e = button;
        button.setOnClickListener(this);
        if (Var.toString(this.g, "").isEmpty()) {
            WidgetHelper.setReadonly(this.e, true);
        } else {
            this.d.setText(this.g);
            WidgetHelper.setReadonly(this.e, this.g.length() < 9);
        }
    }

    @Override
    @CallSuper
    public void onKeyboardVisibilityChanged(boolean z) {
        super.onKeyboardVisibilityChanged(z);
        View view = this.f;
        if (view != null) {
            view.setVisibility(z ? 8 : 0);
        }
    }

    @Override
    @CallSuper
    public void onSaveInstanceState(Bundle bundle) {
        super.onSaveInstanceState(bundle);
        bundle.putString("phone", this.g);
    }

    @Override
    public void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
    }
}