Fix gallery intent for certain apps#1376
Fix gallery intent for certain apps#1376bmarty merged 2 commits intoelement-hq:developfrom dkanada:patch-1
Conversation
|
@bmarty do you have any thoughts about this change? I'll close it if you want to keep the current intent but it seems like the other one might have better support to me. |
|
You can test this change out with the Camera Roll app on F-Droid, which will only show up in the selection menu with the intent I added here. |
|
In another pull request to Riot, I had applied looping to video content in the image view fragment but it was rejected. I still really enjoy looping video content so would an option in the settings be sufficient to apply that change? |
|
@dkanada this sounds like it could be a possible fix for #1413 ? Possibly with the addition of FLAG_GRANT_READ_URI_PERMISSION as mentioned in this ucrop bug report: Yalantis/uCrop#669 Or just ignore me if I'm talking nonsense. |
|
I don't believe this would resolve that issue, since it's an internal activity. |
|
@bmarty if possible, I would also like to address the inconsistent capitalization of strings in this pull request. There seems to be no pattern between |
|
It's good to know my attempt to build yesterday wasn't a fluke and the CI is also unable to find the OLM library. |
|
According to https://developer.android.com/guide/topics/providers/document-provider and specifically it seems that you are right and it's better to use @onurays WDYT? |
Yes, feel free to open a dedicated PR to improve this. Let's choose title casing, so for instance the new string will be I do not know what's best practice for punctuation in setting summaries though. Maybe better to always end sentences with |
|
That would explain why my gallery app only supports the latter option. I'm not sure many third party galleries would include an intent filter for long term, persistent access to documents. I'll open a new PR for the casing when I have some free time. |
|
@dkanada thanks for the rebase. Is this change also applicable to the 3 other Pickers? |
|
I believe so. Changing it for the audio picker should display the sound recorder as an option on LineageOS for example, but I haven't actually tested anything besides the image picker. |
|
Should I fix the merge conflicts? |
|
I will handle the conflicts, thanks |
…instead of Intent.ACTION_OPEN_DOCUMENT for other pickers
Finish what has been started on #1376: use Intent.ACTION_GET_CONTENT …


Let me know if you'd be interested in merging this and I'll add the rest of the required items. You can see this ancient link for the reason I made the change. Lots of gallery apps don't like the open document intent and won't show up properly.