-
Notifications
You must be signed in to change notification settings - Fork 868
Direct share support #2244
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
Direct share support #2244
Conversation
bmarty
left a comment
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.
Thanks a lot for this PR, I have two small remarks.
| .setIntent(intent) | ||
|
|
||
| // Make it show up in the direct share menu | ||
| .setCategories(setOf(directShareCategory)) |
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 is maybe not the ideal place to add this code. create() is called the user create a shortcut, or for the first 4 favorite rooms.
I think other apps create direct share shortcut once something has been shared, for a quicker future sharing to the same target.
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.
Ok, maybe I have misunderstood this. I think it is OK actuallly
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.
Such a ranking is still done on the android side (of course only with the shortcuts published to them).
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.
Yes, my remark was just about what will be the rooms exposed here
vector/src/main/java/im/vector/app/features/share/IncomingShareFragment.kt
Outdated
Show resolved
Hide resolved
vector/src/main/java/im/vector/app/features/home/ShortcutCreator.kt
Outdated
Show resolved
Hide resolved
bmarty
left a comment
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, thanks for the update!
|
Could you add the hacktoberfest topic to the repo as you did at element-web? That would be nice. |
|
What do you mean? |
|
The other matrix repos like synapse or element-web have the hacktoberfest topic on their repo. That makes PRs count to the Hacktoberfest (a competition) goal. It would be nice to have that here too. |
|
You can also just accept specific PRs with a corresponding label "hacktoberfest-accepted" AFAIK |
|
Thank you |

Fixes #2029
It should also work on Android Lollipop according to this. I couldn't test it, however.
Screenshot
Signed-off-by: Constantin Wartenburger [email protected]