diff options
Diffstat (limited to 'src/com/android/camera/VideoModule.java')
-rw-r--r-- | src/com/android/camera/VideoModule.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java index bbe4c421a..e8ab677bd 100644 --- a/src/com/android/camera/VideoModule.java +++ b/src/com/android/camera/VideoModule.java @@ -107,9 +107,6 @@ public class VideoModule implements CameraModule, private static final long SHUTTER_BUTTON_TIMEOUT = 0L; // 0ms - public static final boolean HAS_RESUME_SUPPORTED = - Build.VERSION.SDK_INT > Build.VERSION_CODES.M; - /** * An unpublished intent flag requesting to start recording straight away * and return as soon as recording is stopped. @@ -1417,6 +1414,7 @@ public class VideoModule implements CameraModule, if (valid) { resultCode = Activity.RESULT_OK; resultIntent.setData(mCurrentVideoUri); + resultIntent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); } else { resultCode = Activity.RESULT_CANCELED; } @@ -1980,7 +1978,7 @@ public class VideoModule implements CameraModule, mMediaRecorderPausing = false; mRecordingStartTime = SystemClock.uptimeMillis(); updateRecordingTime(); - if (!HAS_RESUME_SUPPORTED){ + if (!ApiHelper.HAS_RESUME_SUPPORTED){ mMediaRecorder.start(); } else { try { |