导航菜单

页面标题

页面副标题

Fancy Optimizer v4.6.3 - ConfirmLockPinActivity.java 源代码

正在查看: Fancy Optimizer v4.6.3 应用的 ConfirmLockPinActivity.java JAVA 源代码文件

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


package com.fancyclean.boost.applock.ui.activity;

import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.ImageButton;
import com.thinkyeah.common.ui.view.TitleBar;
import com.thinkyeah.common.ui.view.dialpad.DialPadView;
import java.util.ArrayList;
import t5.e0;
import t5.h0;
import t5.i0;
import t5.j0;
import t5.k0;

public class ConfirmLockPinActivity extends e0 {
    public EditText r;
    public Handler s;
    public ViewGroup t;
    public final a u = new a();
    public final b v = new b();

    public class a implements DialPadView.b {
        public a() {
        }

        public final void a(int i) {
            ConfirmLockPinActivity confirmLockPinActivity = ConfirmLockPinActivity.this;
            if (i == 256) {
                confirmLockPinActivity.r.setText("");
            } else {
                confirmLockPinActivity.r.setText(String.format("%s%s", confirmLockPinActivity.r.getText().toString(), Integer.valueOf(i)));
            }
        }
    }

    public class b implements Runnable {
        public b() {
        }

        @Override
        public final void run() {
            ConfirmLockPinActivity.this.r.setText("");
        }
    }

    @Override
    public final ViewGroup X2() {
        return this.t;
    }

    @Override
    public final void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(2131558474);
        this.s = new Handler();
        ArrayList arrayList = new ArrayList();
        if (i5.a.c(this).g()) {
            arrayList.add(new TitleBar.i(new TitleBar.b(2131231295), new TitleBar.e(2131886823), new h0(this)));
        }
        TitleBar.a configure = findViewById(2131363196).getConfigure();
        configure.e(2131887867);
        configure.a.h = arrayList;
        configure.c(true);
        configure.g(new i0(this));
        configure.a();
        this.r = (EditText) findViewById(2131362902);
        DialPadView findViewById = findViewById(2131362140);
        ll.b bVar = new ll.b(this);
        DialPadView.a aVar = new DialPadView.a();
        aVar.g = -1;
        DialPadView.a aVar2 = new DialPadView.a();
        aVar2.e = 2131231255;
        aVar2.f = true;
        aVar2.g = 256;
        SharedPreferences sharedPreferences = getSharedPreferences("app_lock", 0);
        findViewById.a(bVar, aVar, aVar2, sharedPreferences == null ? false : sharedPreferences.getBoolean("random_password_keyboard_enabled", false));
        findViewById.setOnDialPadListener(this.u);
        SharedPreferences sharedPreferences2 = getSharedPreferences("app_lock", 0);
        findViewById.setTactileFeedbackEnabled(sharedPreferences2 != null ? sharedPreferences2.getBoolean("vibration_feedback_enabled", true) : true);
        this.r.addTextChangedListener(new c());
        ImageButton imageButton = (ImageButton) findViewById(2131362021);
        imageButton.setOnClickListener(new j0(this));
        imageButton.setOnLongClickListener(new k0(this));
        this.t = (ViewGroup) findViewById(2131362968);
    }

    public class c implements TextWatcher {
        public int c;

        public c() {
        }

        @Override
        public final void afterTextChanged(Editable editable) {
            ?? r82 = ConfirmLockPinActivity.this;
            Handler handler = r82.s;
            b bVar = r82.v;
            handler.removeCallbacks(bVar);
            String obj = r82.r.getText().toString();
            if (obj.length() < 4) {
                this.c = 0;
                return;
            }
            r82.s.postDelayed(bVar, 2000L);
            if (obj.length() < this.c) {
                this.c = obj.length();
                return;
            }
            this.c = obj.length();
            SharedPreferences sharedPreferences = r82.getSharedPreferences("app_lock", 0);
            if (i5.e.d(obj, sharedPreferences != null ? sharedPreferences.getString("pin_code_hash", null) : null)) {
                r82.s.removeCallbacks(bVar);
                r82.Y2();
                r82.finish();
            }
        }

        @Override
        public final void beforeTextChanged(CharSequence charSequence, int i, int i10, int i11) {
        }

        @Override
        public final void onTextChanged(CharSequence charSequence, int i, int i10, int i11) {
        }
    }
}