|
|
@@ -194,8 +194,8 @@ public class HomeNewFragment extends BaseMvpFragment{
|
|
|
}
|
|
|
|
|
|
private void openImageChooserActivity() {
|
|
|
- final String[] items = new String[] { "相机", "录像" , "照片/视频"};
|
|
|
- // final String[] items = new String[] { "相机", "照片/视频"};
|
|
|
+ // final String[] items = new String[] { "相机", "录像" , "照片/视频"};
|
|
|
+ final String[] items = new String[] { "相机", "照片/视频"};
|
|
|
// 创建对话框构建器
|
|
|
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
|
|
|
// 设置参数
|
|
|
@@ -234,8 +234,6 @@ public class HomeNewFragment extends BaseMvpFragment{
|
|
|
Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
|
|
|
//设置视频质量
|
|
|
intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1);
|
|
|
- //设置视频时长
|
|
|
- intent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, 10);
|
|
|
//开启摄像机
|
|
|
startActivityForResult(intent, REQUEST_VIDEO);
|
|
|
|