lets also react to vnd.android.cursor.dir/ intent
This commit is contained in:
parent
719af8c8ba
commit
75e4f6c8ab
|
@ -40,6 +40,8 @@
|
||||||
|
|
||||||
<data android:mimeType="image/*"/>
|
<data android:mimeType="image/*"/>
|
||||||
<data android:mimeType="video/*"/>
|
<data android:mimeType="video/*"/>
|
||||||
|
<data android:mimeType="vnd.android.cursor.dir/image"/>
|
||||||
|
<data android:mimeType="vnd.android.cursor.dir/video"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
|
|
|
@ -373,11 +373,13 @@ public class MainActivity extends AppCompatActivity
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isGetImageContentIntent(Intent intent) {
|
private boolean isGetImageContentIntent(Intent intent) {
|
||||||
return isGetContentIntent(intent) && intent.getType().startsWith("image/");
|
return isGetContentIntent(intent) &&
|
||||||
|
(intent.getType().startsWith("image/") || intent.getType().equals(MediaStore.Images.Media.CONTENT_TYPE));
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isGetVideoContentIntent(Intent intent) {
|
private boolean isGetVideoContentIntent(Intent intent) {
|
||||||
return isGetContentIntent(intent) && intent.getType().startsWith("video/");
|
return isGetContentIntent(intent) &&
|
||||||
|
(intent.getType().startsWith("video/") || intent.getType().equals(MediaStore.Video.Media.CONTENT_TYPE));
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isSetWallpaperIntent(Intent intent) {
|
private boolean isSetWallpaperIntent(Intent intent) {
|
||||||
|
|
Loading…
Reference in New Issue