Skip to content

Commit

Permalink
restore passcode
Browse files Browse the repository at this point in the history
  • Loading branch information
guanlisheng committed Feb 27, 2024
1 parent c5fdd4a commit b30fbc2
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions app/src/main/java/com/money/manager/ex/home/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -257,19 +257,19 @@ protected void onStart() {
super.onStart();

// check if has pass-code and authenticate
// if (!isAuthenticated) {
// Passcode passcode = new Passcode(getApplicationContext());
// if (passcode.hasPasscode() && !isInAuthentication) {
// Intent intent = new Intent(this, PasscodeActivity.class);
// // set action and data
// intent.setAction(PasscodeActivity.INTENT_REQUEST_PASSWORD);
// intent.putExtra(PasscodeActivity.INTENT_MESSAGE_TEXT, getString(R.string.enter_your_passcode));
// // start activity
// startActivityForResult(intent, RequestCodes.PASSCODE);
// // set in authentication
// isInAuthentication = true;
// }
// }
if (!isAuthenticated) {
Passcode passcode = new Passcode(getApplicationContext());
if (passcode.hasPasscode() && !isInAuthentication) {
Intent intent = new Intent(this, PasscodeActivity.class);
// set action and data
intent.setAction(PasscodeActivity.INTENT_REQUEST_PASSWORD);
intent.putExtra(PasscodeActivity.INTENT_MESSAGE_TEXT, getString(R.string.enter_your_passcode));
// start activity
startActivityForResult(intent, RequestCodes.PASSCODE);
// set in authentication
isInAuthentication = true;
}
}

// todo: mark the active database file in the navigation panel.
// mDrawer
Expand Down

0 comments on commit b30fbc2

Please sign in to comment.