Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug fix] Crash when access to selected file was lost #417

Merged
merged 3 commits into from
Nov 16, 2023
Merged

Conversation

philips77
Copy link
Member

It is possible to do the following:

  1. Start DFU to a selected target device
  2. Quit the app with a Back button when DFU is in progress -> this will kill the Activity and ViewModel
  3. When DFU is complete (it runs in a foreground service, so wasn't affected) open app again
  4. The app shows correctly status of the last operation
  5. Try to do DFU again to the same or other device (without modifying the file)
  6. This will cause a crash, as access to the file was granted for URI, which is no longer active

This PR fixes that by displaying an error instead. User can select the file again and repeat DFU.

@philips77 philips77 merged commit 96dddcb into main Nov 16, 2023
1 check passed
@philips77 philips77 deleted the bugfix/no-file branch November 16, 2023 12:58
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.

None yet

1 participant