正在查看: Easycash v3.75.13 应用的 GesturePasswordActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Easycash v3.75.13 应用的 GesturePasswordActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.fintopia.lender.module.gesture;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import butterknife.BindView;
import butterknife.OnCheckedChanged;
import butterknife.OnClick;
import com.bigkoo.pickerview.OptionsPickerView;
import com.fintopia.lender.R;
import com.fintopia.lender.module.LabelBean;
import com.fintopia.lender.module.baseui.LenderCommonActivity;
import com.fintopia.lender.module.gesture.models.GestureUsedType;
import com.fintopia.lender.module.utils.GesturePasswordManager;
import com.fintopia.lender.widget.FullScreenDialog;
import com.fintopia.lender.widget.PickViewHelper;
import com.lingyue.idnbaselib.framework.lifecycle.LifecycleEvent;
import com.lingyue.idnbaselib.framework.lifecycle.m;
import com.lingyue.supertoolkit.widgets.BaseUtils;
import io.reactivex.disposables.Disposable;
import java.util.List;
public class GesturePasswordActivity extends LenderCommonActivity {
public static final int REQUEST_CODE_CLOSE_GESTURE_PASSWORD = 107;
@BindView(4739)
CheckBox cbShowGestureTrack;
@BindView(4740)
CheckBox cbSignInWithGesture;
@BindView(5721)
TextView tvLockScreenTime;
private List<LabelBean> f47u;
private LabelBean f48v;
public void M(Activity activity, FullScreenDialog fullScreenDialog, View view, OptionsPickerView optionsPickerView) {
LabelBean labelBean = this.f48v;
if (labelBean != null) {
optionsPickerView.y(this.f47u.indexOf(labelBean));
}
}
public void N(View view, LabelBean labelBean) {
this.f48v = labelBean;
this.tvLockScreenTime.setText(labelBean.label);
GesturePasswordManager.q(this, Integer.valueOf(labelBean.value).intValue());
}
public static void startGesturePasswordActivity(Activity activity, int i) {
activity.startActivityForResult(new Intent(activity, (Class<?>) GesturePasswordActivity.class), i);
}
@OnClick({5339})
public void changeLockScreenTime(View view) {
if (BaseUtils.l()) {
return;
}
PickViewHelper.f(this, PickViewHelper.b(this, this.f47u, "R2.id.rl_lock_screen_time", new PickViewHelper.SingleRowSelectionCallBack() {
@Override
public final void a(View view2, Object obj) {
GesturePasswordActivity.this.N(view2, (LabelBean) obj);
}
}), new FullScreenDialog.IFullScreenDialogInitCallBack() {
@Override
public final void a(Activity activity, FullScreenDialog fullScreenDialog, View view2, Object obj) {
GesturePasswordActivity.this.M(activity, fullScreenDialog, view2, (OptionsPickerView) obj);
}
});
}
@Override
public int getLayoutID() {
return R.layout.lender_activity_gesture_password;
}
@OnClick({5740})
public void modifyGesturePassword() {
InputGestureActivity.startInputGestureActivity(this, GestureUsedType.MODIFY);
}
@Override
protected void onActivityResult(int i, int i2, Intent intent) {
super.onActivityResult(i, i2, intent);
if (i == 107 && i2 == -1) {
setResult(-1);
finish();
}
}
@OnCheckedChanged({4740})
public void onSignInWithGesturePassword(CompoundButton compoundButton, boolean z) {
if (z) {
return;
}
this.cbSignInWithGesture.setChecked(GesturePasswordManager.h(this));
InputGestureActivity.startInputGestureActivityForResult(this, GestureUsedType.CLOSE, 107);
}
@Override
public Disposable runOnActiveEvent(Runnable runnable) {
return m.a(this, runnable);
}
@Override
@SuppressLint({"CheckResult"})
public Disposable runOnCreated(@NonNull Runnable runnable) {
return m.b(this, runnable);
}
@Override
@SuppressLint({"CheckResult"})
public Disposable runOnDestroy(@NonNull Runnable runnable) {
return m.c(this, runnable);
}
@Override
@SuppressLint({"CheckResult"})
public Disposable runOnEvent(@NonNull LifecycleEvent lifecycleEvent, @Nullable Runnable runnable) {
return m.d(this, lifecycleEvent, runnable);
}
@Override
public Disposable runOnEvents(@NonNull LifecycleEvent[] lifecycleEventArr, @Nullable Runnable runnable) {
return m.e(this, lifecycleEventArr, runnable);
}
@OnCheckedChanged({4739})
public void showGestureTrack(CompoundButton compoundButton, boolean z) {
GesturePasswordManager.t(this, z);
}
@Override
protected void w() {
super.w();
this.f47u = GesturePasswordManager.a(this);
LabelBean b = GesturePasswordManager.b(this);
this.f48v = b;
this.tvLockScreenTime.setText(b.label);
this.cbSignInWithGesture.setChecked(GesturePasswordManager.h(this));
this.cbShowGestureTrack.setChecked(GesturePasswordManager.k(this));
}
}