diff options
author | Alan Newberger <alann@google.com> | 2016-05-06 14:31:02 -0700 |
---|---|---|
committer | Chippa-a <vusal1372@gmail.com> | 2019-10-25 15:55:25 +0300 |
commit | 34f23a4edce674b34b0fcf8a26e148fcb38b4e30 (patch) | |
tree | 94b717c44c1bbd6521f508e77c8e1336c8b6da06 /src/com/android/camera | |
parent | 75a4f13ae7c7f979af526cd7e2c1c43440cfa545 (diff) | |
download | android_packages_apps_Snap-34f23a4edce674b34b0fcf8a26e148fcb38b4e30.tar.gz android_packages_apps_Snap-34f23a4edce674b34b0fcf8a26e148fcb38b4e30.tar.bz2 android_packages_apps_Snap-34f23a4edce674b34b0fcf8a26e148fcb38b4e30.zip |
Grant read URI permission for playback of video capture
Current implementation of video capture UI configured MediaRecorder to
output directly into supplied URI, which per recommendation should be
a content: URI. We pass this URI to another app to play back the video,
and should pass along the read permission.
Bug: 19675889
Change-Id: Idfc0ee42422dde5d921e81f098d4697e652ac689
Diffstat (limited to 'src/com/android/camera')
-rw-r--r-- | src/com/android/camera/VideoModule.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java index a7efae0e7..1d34990bd 100644 --- a/src/com/android/camera/VideoModule.java +++ b/src/com/android/camera/VideoModule.java @@ -786,6 +786,7 @@ public class VideoModule implements CameraModule, private void startPlayVideoActivity() { Intent intent = new Intent(Intent.ACTION_VIEW); + intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); intent.setDataAndType(mCurrentVideoUri, convertOutputFormatToMimeType(mProfile.fileFormat)); try { mActivity |