Skip to content
Snippets Groups Projects

Prevent multiple instances of PasswordActivity

Merged akwizgran requested to merge 909-prevent-multiple-password-screens into master
1 unresolved thread

This branch fixes the last part of #909 (closed): multiple instances of PasswordActivity being shown when multiple activities are started via intents. It also fixes a bug where PasswordActivity would be shown after signing out if the account was deleted at the previous sign in. (I thought we had a ticket for that but I can't find it.)

Closes #909 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
61 60 super.onStart();
62 61 if (!briarController.hasEncryptionKey() && !isFinishing()) {
63 62 Intent i = new Intent(this, PasswordActivity.class);
64 i.setFlags(FLAG_ACTIVITY_SINGLE_TOP);
  • This was my previous attempt to prevent multiple instances of PasswordActivity - it had no effect because PasswordActivity was never on the top of the stack when this was called.

  • Please register or sign in to reply
  • Looks good!

  • akwizgran mentioned in commit 199a2ffc

    mentioned in commit 199a2ffc

  • merged

  • Please register or sign in to reply
    Loading