Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
briar
briar
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 695
    • Issues 695
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 16
    • Merge Requests 16
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • briar
  • briarbriar
  • Merge Requests
  • !1131

Merged
Opened Jun 10, 2019 by akwizgran@akwizgranOwner

Retry database tasks after signing in

  • Overview 5
  • Commits 2
  • Pipelines 2
  • Changes 8

This branch throws a DbClosedException instead of an IllegalStateException when database work is attempted before signing in, to avoid a crash in the case of bugs like #1482 (closed) or #1576 (closed). To ensure the database work is retried after signing in, BriarActivity recreates itself on receiving RESULT_OK from StartupActivity, and initial database work performed by ViewModels is moved from the constructor to an onCreate() hook, which is called again when the activity is recreated.

Closes #1576 (closed)

Assignee
Assign to
Android 1.2
Milestone
Android 1.2
Assign milestone
Time tracking
Reference: briar/briar!1131
Source branch: 1576-db-before-signing-in

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.