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