Support video attachments through GalleryMediaChooser
GalleryMediaChooser supports video types and more image types also. And video thumbnails are overlaid with the play button image to distinguish between images and videos. Note: 1. EXTRA_ALLOW_MULTIPLE is not specified for ACTION_GET_CONTENT. 2. Files, methods and variables' name are still including "image". 3. Content descriptions are not updated. Test: Manual Change-Id: I961928f150e4ae8ee80a1fba2f20c37fb5426669 Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
This commit is contained in:
@@ -279,7 +279,7 @@ public class TestDataFactory {
|
||||
new Object[] { Long.valueOf(1), "/sdcard/image2", 200, 200, "image/png" },
|
||||
new Object[] { Long.valueOf(2), "/sdcard/image3", 300, 300, "image/jpeg" },
|
||||
};
|
||||
return new FakeCursor(GalleryGridItemData.IMAGE_PROJECTION, sGalleryCursorColumns,
|
||||
return new FakeCursor(GalleryGridItemData.MEDIA_PROJECTION, sGalleryCursorColumns,
|
||||
cursorData);
|
||||
}
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ public class MediaPickerTest extends FragmentTestCase<MediaPicker> {
|
||||
public void testDefaultTabs() {
|
||||
Mockito.when(mMockMediaPickerData.getSelectedChooserIndex()).thenReturn(0);
|
||||
initFragment(MediaPicker.MEDIA_TYPE_ALL, new Integer[] {
|
||||
MediaPickerData.GALLERY_IMAGE_LOADER },
|
||||
MediaPickerData.GALLERY_MEDIA_LOADER },
|
||||
false);
|
||||
final MediaPicker mediaPicker = getFragment();
|
||||
final View view = mediaPicker.getView();
|
||||
@@ -114,7 +114,7 @@ public class MediaPickerTest extends FragmentTestCase<MediaPicker> {
|
||||
public void testFilterTabsBeforeAttach() {
|
||||
Mockito.when(mMockMediaPickerData.getSelectedChooserIndex()).thenReturn(0);
|
||||
initFragment(MediaPicker.MEDIA_TYPE_IMAGE, new Integer[] {
|
||||
MediaPickerData.GALLERY_IMAGE_LOADER },
|
||||
MediaPickerData.GALLERY_MEDIA_LOADER },
|
||||
true);
|
||||
final MediaPicker mediaPicker = getFragment();
|
||||
final View view = mediaPicker.getView();
|
||||
|
||||
Reference in New Issue
Block a user