Make Tusky a share target for video (#857)
This commit is contained in:
parent
0db9bcbf51
commit
eb7459406a
@ -63,11 +63,21 @@
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<data android:mimeType="image/*" />
|
||||
</intent-filter>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.SEND" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<data android:mimeType="video/*" />
|
||||
</intent-filter>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.SEND_MULTIPLE" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<data android:mimeType="image/*" />
|
||||
</intent-filter>
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.SEND_MULTIPLE" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
<data android:mimeType="video/*" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".ViewVideoActivity"
|
||||
|
@ -562,7 +562,7 @@ public final class ComposeActivity
|
||||
* instance state will be re-queued. */
|
||||
String type = intent.getType();
|
||||
if (type != null) {
|
||||
if (type.startsWith("image/")) {
|
||||
if (type.startsWith("image/") || type.startsWith("video/")) {
|
||||
List<Uri> uriList = new ArrayList<>();
|
||||
if (intent.getAction() != null) {
|
||||
switch (intent.getAction()) {
|
||||
|
Loading…
Reference in New Issue
Block a user