Skip to content

Commit

Permalink
Fix crash when opening application from within Play Store
Browse files Browse the repository at this point in the history
  • Loading branch information
codinguser committed Oct 9, 2015
1 parent 9bb1632 commit 24b8cdc
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@ protected void onResume() {

if (isPassEnabled && !isSessionActive() && !passCode.trim().isEmpty() && !skipPasscode) {
Log.v(TAG, "Show passcode screen");
startActivity(new Intent(this, PasscodeLockScreenActivity.class)
.setAction(getIntent().getAction())
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK)
.putExtra(UxArgument.PASSCODE_CLASS_CALLER, this.getClass().getName())
.putExtras(getIntent().getExtras())
);
Intent intent = new Intent(this, PasscodeLockScreenActivity.class)
.setAction(getIntent().getAction())
.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK)
.putExtra(UxArgument.PASSCODE_CLASS_CALLER, this.getClass().getName());
if (getIntent().getExtras() != null)
intent.putExtras(getIntent().getExtras());
startActivity(intent);
}
}

Expand Down

0 comments on commit 24b8cdc

Please sign in to comment.