-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add basic UI to download a file #51
Conversation
Is the "saving the file without an extension" functionality a responsibility of the library or of the sample app? |
} | ||
} | ||
|
||
if (deniedPermissions.isNotEmpty()) { |
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.
This could be an early return
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 think in this particular case an early return will not make difference
The result code would be something like:
if (deniedPermissions.isEmpty()) {
return
}
requestPermissions()
which is basically the same, but longer.
What do you think? @Anwera64
...src/main/java/com/omh/android/storage/sample/presentation/file_viewer/FileViewerViewModel.kt
Show resolved
Hide resolved
703e5dc
to
7256fda
Compare
09e0ab0
to
d5b1b27
Compare
d5b1b27
to
546468d
Compare
4502676
to
a89e419
Compare
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.
LGTM
Depends on branch 'state/gmsDownloadFile'. After branch 'state/gmsDownloadFile' is merged, change this PR's base branch.
Basic UI. Requires to ask permissions dynamically. Not sure if try to save the file with a extension if it doesn't have a extension.
This PR depends on #50