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

#289 📎 sources - Introduce bottom sheet dialog #555

Merged
merged 39 commits into from
Nov 2, 2020

Conversation

stefan-niedermann
Copy link
Owner

@stefan-niedermann stefan-niedermann commented Jun 24, 2020

Description

This PR allows one to not only select files from the phone to upload, but also pick contacts and take photos directly from within the app.

Help test

You can download and install the APK safely in parallel to the production version.

Screenshots

1 2
attachments-1 attachments-2

@stefan-niedermann stefan-niedermann self-assigned this Jun 29, 2020
# Conflicts:
#	app/src/main/AndroidManifest.xml
#	app/src/main/java/it/niedermann/nextcloud/deck/ui/card/attachments/CardAttachmentsFragment.java
#	app/src/main/res/values/strings.xml
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Make contacts upload work

Signed-off-by: Stefan Niedermann <info@niedermann.it>
Minor clean up

Signed-off-by: Stefan Niedermann <info@niedermann.it>
Fix contact picker

Signed-off-by: Stefan Niedermann <info@niedermann.it>
Design fine tuning

Signed-off-by: Stefan Niedermann <info@niedermann.it>
Design fine tuning

Signed-off-by: Stefan Niedermann <info@niedermann.it>
Design fine tuning

Signed-off-by: Stefan Niedermann <info@niedermann.it>
# Conflicts:
#	app/src/main/java/it/niedermann/nextcloud/deck/ui/card/attachments/CardAttachmentsFragment.java
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Signed-off-by: Stefan Niedermann <info@niedermann.it>
…kePhotoActivity

Signed-off-by: Stefan Niedermann <info@niedermann.it>
…kePhotoActivity

Signed-off-by: Stefan Niedermann <info@niedermann.it>
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Signed-off-by: Stefan Niedermann <info@niedermann.it>
…en granted

Signed-off-by: Stefan Niedermann <info@niedermann.it>
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Signed-off-by: Stefan Niedermann <info@niedermann.it>
@stefan-niedermann stefan-niedermann marked this pull request as ready for review November 2, 2020 08:35
@splitt3r
Copy link

splitt3r commented Nov 2, 2020

Awesome work @stefan-niedermann ! It works great. Only a minor idea: Maybe reuse the UI (tab) structure form the web? Currently the images are shown as full images but e. g. a contact is shown in a table structure. The Web UI shows everything in a table structure.

@q-wertz
Copy link

q-wertz commented Nov 2, 2020

Tested and works 🎉 Thanks for the new feature.

Smartphone: Nokia 7 plus with Android 10
Server: Deck v 1.1.2

@stefan-niedermann
Copy link
Owner Author

Fantastic, thank you very much for testing @splitt3r & @q-wertz !

Only a minor idea: Maybe reuse the UI (tab) structure form the web?

I think the Web UI should do it the other way around: If one can generate a preview, we should show the preview and only fall back to the generic table layout if we can't show anything.

Also Nextcloud usually always displays a preview (even for .txt files in the web files app), so i guess Deck is the one who steps out of the line 😉

@splitt3r
Copy link

splitt3r commented Nov 2, 2020

Fantastic, thank you very much for testing @splitt3r & @q-wertz !

Only a minor idea: Maybe reuse the UI (tab) structure form the web?

I think the Web UI should do it the other way around: If one can generate a preview, we should show the preview and only fall back to the generic table layout if we can't show anything.

Also Nextcloud usually always displays a preview (even for .txt files in the web files app), so i guess Deck is the one who steps out of the line 😉

Very good point. But than maybe create a common structure to display images and other files alike? Anyway i think this is more of a follow up issue.

@stefan-niedermann stefan-niedermann merged commit ea7895c into master Nov 2, 2020
@stefan-niedermann stefan-niedermann deleted the 289-upload-sources branch November 10, 2020 21:25
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.

3 participants