You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.
Problem
Currently Okuna uses the share Intent's type to determine whether text or media was shared. However, some apps might send Intents with both text and media. In that case one of the two will be ignored by Okuna.
Solution
Always check intent.getStringExtra(Intent.EXTRA_TEXT) for text content.
Extract the MIME type from intent.getParcelableExtra(Intent.EXTRA_STREAM) (assuming the stream is non-null) and check if it is an image or video. Handle accordingly.
Note: I don't know if this will have any unintended side-effects, so it should be tested extensively.
The text was updated successfully, but these errors were encountered:
Problem
Currently Okuna uses the share
Intent
's type to determine whether text or media was shared. However, some apps might sendIntent
s with both text and media. In that case one of the two will be ignored by Okuna.Solution
intent.getStringExtra(Intent.EXTRA_TEXT)
for text content.intent.getParcelableExtra(Intent.EXTRA_STREAM)
(assuming the stream is non-null) and check if it is an image or video. Handle accordingly.Note: I don't know if this will have any unintended side-effects, so it should be tested extensively.
The text was updated successfully, but these errors were encountered: