正在查看: 大众借. v4.1.2 应用的 O0ACT.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 大众借. v4.1.2 应用的 O0ACT.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.shiliuj.ui.activitys;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.OnClick;
import com.base.commonlibrary.base.baseapp.AppActivityManager;
import com.base.commonlibrary.utils.ACacheUtil;
import com.base.commonlibrary.utils.SPUtils;
import com.shiliuj.mjyp.BMAG01ACT;
import com.shiliuj.mjyp.app.base.BaseBindActivity;
import com.shiliuj.ui.lockView.LockPatternUtil;
import com.shiliuj.ui.lockView.LockPatternView;
import java.util.List;
public class O0ACT extends BaseBindActivity {
private static final long DELAYTIME = 600;
private ACacheUtil aCache;
private long exitTime;
@BindView(2131296530)
Button forgetGestureBtn;
private byte[] gesturePassword;
@BindView(2131296672)
LockPatternView lockPatternView;
@BindView(2131296688)
TextView messageTv;
boolean isReset = false;
private LockPatternView.OnPatternListener patternListener = new LockPatternView.OnPatternListener() {
public void onPatternStart() {
O0ACT.this.lockPatternView.removePostClearPatternRunnable();
}
public void onPatternComplete(List<LockPatternView.Cell> list) {
if (list != null) {
if (LockPatternUtil.checkPattern(list, O0ACT.this.gesturePassword)) {
O0ACT.this.updateStatus(Status.CORRECT);
} else {
O0ACT.this.updateStatus(Status.ERROR);
}
}
}
};
protected boolean canLoadMore() {
return false;
}
public int getLayoutId() {
return 2131492900;
}
public void initPresenter() {
}
protected void loadMore() {
}
protected void refresh() {
}
public void initView(Bundle bundle) {
Bundle extras = getIntent().getExtras();
if (extras != null) {
this.isReset = extras.getBoolean("isReset", false);
}
this.forgetGestureBtn.setText(getResources().getString(2131689752));
ACacheUtil aCacheUtil = ACacheUtil.get(this);
this.aCache = aCacheUtil;
this.gesturePassword = aCacheUtil.getAsBinary("GESTURE_PASSWORD");
this.lockPatternView.setOnPatternListener(this.patternListener);
updateStatus(Status.DEFAULT);
}
public void updateStatus(Status status) {
this.messageTv.setText(status.strId);
this.messageTv.setTextColor(getResources().getColor(status.colorId));
int i = AnonymousClass2.$SwitchMap$com$shiliuj$ui$activitys$O0ACT$Status[status.ordinal()];
if (i == 1) {
this.lockPatternView.setPattern(LockPatternView.DisplayMode.DEFAULT);
return;
}
if (i == 2) {
this.lockPatternView.setPattern(LockPatternView.DisplayMode.ERROR);
this.lockPatternView.postClearPatternRunnable(DELAYTIME);
} else {
if (i != 3) {
return;
}
this.lockPatternView.setPattern(LockPatternView.DisplayMode.DEFAULT);
loginGestureSuccess();
}
}
static class AnonymousClass2 {
static final int[] $SwitchMap$com$shiliuj$ui$activitys$O0ACT$Status;
static {
int[] iArr = new int[Status.values().length];
$SwitchMap$com$shiliuj$ui$activitys$O0ACT$Status = iArr;
try {
iArr[Status.DEFAULT.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
$SwitchMap$com$shiliuj$ui$activitys$O0ACT$Status[Status.ERROR.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
$SwitchMap$com$shiliuj$ui$activitys$O0ACT$Status[Status.CORRECT.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
}
}
private void loginGestureSuccess() {
if (this.isReset) {
startActivity(R0ACT.class);
finish();
} else {
ACacheUtil.get(this.mContext).put("GESTURE_PASSWORD", "");
finish();
}
}
@OnClick({2131296530})
void forgetGesturePasswrod() {
ACacheUtil.get(this.mContext).put("GESTURE_PASSWORD", "");
SPUtils.putData("APP_TOKEN", "");
this.mRxManager.post("Status", "退出");
AppActivityManager.getAppManager().getActivity(BMAG01ACT.class).onCheckPosition(0);
AppActivityManager.getAppManager().returnToActivity(BMAG01ACT.class);
startActivity(S0ACT.class);
finish();
}
private enum Status {
DEFAULT(2131689750, 2131099932),
ERROR(2131689751, 2131099932),
CORRECT(2131689748, 2131099932);
private int colorId;
private int strId;
Status(int i, int i2) {
this.strId = i;
this.colorId = i2;
}
}
}