Skip to content

General: Ask to delete debug log after sharing it#435

Merged
d4rken merged 1 commit intomainfrom
feat/post-share-confirmation-dialog
Mar 9, 2026
Merged

General: Ask to delete debug log after sharing it#435
d4rken merged 1 commit intomainfrom
feat/post-share-confirmation-dialog

Conversation

@d4rken
Copy link
Copy Markdown
Member

@d4rken d4rken commented Mar 9, 2026

What changed

After sharing a debug log or sending a contact form email, a confirmation dialog now appears when returning to the app. Tapping "Done" deletes the log and closes the screen, preventing accidental re-sends.

Technical Context

  • Both RecorderActivity (direct debug log share) and ContactFormScreen (contact form email) track whether the user left via a share/email intent using a hasShared/hasSentEmail flag
  • A LifecycleResumeEffect checks the flag on resume and shows a MaterialAlertDialogBuilder dialog matching the existing dialog pattern in both screens
  • In the contact form flow, confirmSent() deletes the attached debug session (if any) and navigates back via navUp()
  • If the email app wasn't found (ActivityNotFoundException), the flag is reset so no dialog appears on resume

After sharing a debug log or sending a contact form email, show a dialog on return asking if the send was successful. Confirming deletes the log session and closes/navigates back.
@d4rken d4rken added the enhancement Add a new feature of improve an existing feature label Mar 9, 2026
@d4rken d4rken merged commit 7f8dadd into main Mar 9, 2026
9 checks passed
@d4rken d4rken deleted the feat/post-share-confirmation-dialog branch March 9, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Add a new feature of improve an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant