-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Improve share link handling #2742
Comments
Yup! And showing a toast/snackbar (always mixing up the names … :D) with "Share link copied" for feedback. |
Yes! Far better, thank you! |
@jancborchardt I extended the issue's description In this case it'll be a Toast since Android still uses a Toast for clipboard while all other places have been replaced Toast->Snackbar already :) |
Nice one Andy! |
Thanks @jasonbayton, let's see if it works the way everbody wanted it to be :) |
Sorry, prematurely closed... the details view still launches the send link to dialog when activating share by link... :( |
@AndyScherzinger care to elaborate on what's not working as intended? |
EDIT: Showing file details first lets me reproduce the issue as you describe. The link is not copied to the clipboard though. |
It's the FileDisplayActivity that triggers the The problem is that the method that triggers the dialog to appear is called regardless of whether a link is created ( |
@AndyScherzinger as you changed quite a lot there, maybe you have an hint, how to do this? |
Well, @ardevd nailed it pretty much ;) Afaik @jancborchardt wanted
So like @ardevd mentioned we would need to have to actions like |
Then let us wait for confirmation by @jancborchardt and then we have to do it this way and implement two actions… |
We mostly talked about the detail view I think. For consistency reasons and to fit the expectations, it’s best to do it the same in either view. Or do you have other feedback? And instead of only a toast saying "Link copied" we could show a snackbar saying "Link copied" which on the right has an action for "Send to", which would launch the share sheet (and can be used if needed). This would enhance the way we want to do it in the detail view, and also improve it if we want to use the same method when the link is created via share bottom sheet: And because the bottom sheet already has all these "Send to other apps" options listed below our "Share" and "Share link" icons, we don’t need to have the ShareLinkToDialog directly show when using the "Share link" way. (Because then it just seems like a weird 2-step process for sharing a link, where for sharing with another app you might as well just use those direct icons in the bottom sheet which share the file itself, not a link.) Does that make sense? |
Took me a while do understand it 😆 but makes sense to me now 👍 |
@AndyScherzinger also added a quick illustration of the Snackbar for better understanding. :D |
Thanks @jancborchardt @tobiasKaminsky @ardevd I am fine with Jan's proposal, well, I even think that is the best solution 👍 |
as discussed in the forum with @jancborchardt and @jasonbayton: https://help.nextcloud.com/t/nextcloud-android-app-update-with-improved-user-interface-and-sharing/32900/15?u=jan
When a share link is created, copy it to the clipboard directly for fast sharing while not showing the "Send to" dialog anymore. This way the experience is smoother and the user can still edit the links permissions etc. without having to close the send action dialog but can do that anytime afterwards via the newly introduced menu item.
Upon initial creation when the link is auto copied into the clipboard show a Toast saying: "Share link copied"
The text was updated successfully, but these errors were encountered: