Make Tusky a share target for video (#857)

main
Levi Bard 6 years ago committed by Konrad Pozniak
parent 0db9bcbf51
commit eb7459406a
  1. 10
      app/src/main/AndroidManifest.xml
  2. 2
      app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java

@ -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…
Cancel
Save