-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Suppress download dialog if user already confirmed download with a different dialog #766
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
Merged
subsymbolic
merged 11 commits into
feature/multiple_authors/download_confirmation
from
feature/mia/suppress_dialog_if_other_dialogs_seen
Apr 10, 2020
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
6485f64
Suppress dialog if download already requested via a dialog by user
subsymbolic 0f5a54c
Simplify logic
subsymbolic d4bab68
Merge branch 'feature/multiple_authors/download_confirmation' into fe…
subsymbolic 31497fc
Add test to check that confirmation suppressed on image download
subsymbolic 985804f
Move data check to fragment
subsymbolic bda1026
Make method private
subsymbolic affcbdf
Move file var out of constructor
subsymbolic f9c6011
Dismiss confirmation dialog on pause
subsymbolic 89864e1
Use correct no arg constructor for fragment
subsymbolic 4652718
Make pending download non-nullable
subsymbolic 0225596
Merge branch 'feature/multiple_authors/download_confirmation' into fe…
subsymbolic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if we need this dismiss here. The dialog will be dismissed automatically when activity is destroyed, and automatically shown when recreated. You are already covering that case setting again the listener.
Keeping the line here, dialog will be dismissed if user sends the app to background or screen turns off (Maybe that's the expected behavior).
Removing the line keeps the dialog and also work on recreation. Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made the rest of the code safe in terms of fragment recreation so we definitely don't need this.
I went with removing it for usability reasons, I was testing my changes and found it awkward to leave the app and return to it later with the dialog still up. The dialog feels like a decision the user should make immediately and I thinks it's a better experience if the dialog is dismissed if the user leaves the screen. It's an edge case that probably won't impact many users so that's not a strong opinion on my side. If you feel really strongly about keeping it, I'm happy to go with that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, it's an edge case and worst case scenario user only needs to click again on the link, like you said. I'm good keeping it like this.