- Update Glide Version

- Add preview of videos
This commit is contained in:
Ali Shariat 2015-09-29 08:03:44 +03:30
parent d5a4122277
commit dbe476a8fe
5 changed files with 8 additions and 8 deletions

View File

@ -64,7 +64,7 @@
</activity>
<activity
android:name="com.nononsenseapps.filepicker.sample.ImagePickerActivity"
android:name=".MultimediaPickerActivity"
android:label="@string/title_activity_no_nonsense_file_picker"
android:theme="@style/SampleTheme">
<intent-filter>
@ -74,7 +74,7 @@
</activity>
<activity
android:name="com.nononsenseapps.filepicker.sample.ImagePickerActivity2"
android:name=".MultimediaPickerActivity2"
android:label="@string/title_activity_no_nonsense_file_picker"
android:theme="@style/SampleThemeLight">
<intent-filter>

View File

@ -27,9 +27,9 @@ import java.io.File;
/**
* All this class does is return a suitable fragment.
*/
public class ImagePickerActivity extends AbstractFilePickerActivity {
public class MultimediaPickerActivity extends AbstractFilePickerActivity {
public ImagePickerActivity() {
public MultimediaPickerActivity() {
super();
}
@ -37,7 +37,7 @@ public class ImagePickerActivity extends AbstractFilePickerActivity {
protected AbstractFilePickerFragment<File> getFragment(
final String startPath, final int mode, final boolean allowMultiple,
final boolean allowCreateDir) {
AbstractFilePickerFragment<File> fragment = new ImagePickerFragment();
AbstractFilePickerFragment<File> fragment = new MultimediaPickerFragment();
// startPath is allowed to be null. In that case, default folder should be SD-card and not "/"
fragment.setArgs(startPath != null ? startPath : Environment.getExternalStorageDirectory().getPath(),
mode, allowMultiple, allowCreateDir);

View File

@ -20,5 +20,5 @@ package com.nononsenseapps.filepicker.sample;
/**
* Duplicate to allow second theme to be used.
*/
public class ImagePickerActivity2 extends ImagePickerActivity {
public class MultimediaPickerActivity2 extends MultimediaPickerActivity {
}

View File

@ -118,10 +118,10 @@ public class NoNonsenseFilePicker extends Activity {
if (checkLightTheme.isChecked()) {
i = new Intent(NoNonsenseFilePicker.this,
ImagePickerActivity2.class);
MultimediaPickerActivity2.class);
} else {
i = new Intent(NoNonsenseFilePicker.this,
ImagePickerActivity.class);
MultimediaPickerActivity.class);
}
i.setAction(Intent.ACTION_GET_CONTENT);