Skip to content

fix: reset stage when scanner is cancelled - #362

Open
xhon-pelushi wants to merge 1 commit into
GrapheneOS:mainfrom
xhon-pelushi:fix/323-stage-reset-on-scanner-cancel
Open

fix: reset stage when scanner is cancelled#362
xhon-pelushi wants to merge 1 commit into
GrapheneOS:mainfrom
xhon-pelushi:fix/323-stage-reset-on-scanner-cancel

Conversation

@xhon-pelushi

Copy link
Copy Markdown

Reset attestation UI stage when the user backs out of the camera scanner without RESULT_OK.

Fixes #323

Test plan

  • Review diff against issue
  • Run project lint/tests if applicable

Stage.Auditee and Stage.EnableRemoteVerify only reset to Stage.None
inside the RESULT_OK branch of the scanner's ActivityResultLauncher
callback. Backing out of the camera activity (RESULT_CANCELED) left
stage stuck at Auditee/EnableRemoteVerify with no content generated
yet. A later configuration change then hid the buttons in onCreate's
onPreDraw listener without restoring any content, leaving only the
toolbar visible.

Fixes GrapheneOS#323
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UI disappears if configuration changes after backing out of camera activity launch

1 participant