summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Newberger <alann@google.com>2016-05-06 14:31:02 -0700
committerMichael Bestas <mikeioannina@gmail.com>2017-01-04 22:00:43 +0200
commit28da641e6d643698b20db69f0f89fffee2d1c509 (patch)
tree5fda4e4a31d4aec4668de9da93dfa873aaa58f84
parent364d1fb9369476d2bfd133a691fe0f5499cd862d (diff)
downloadandroid_packages_apps_Snap-28da641e6d643698b20db69f0f89fffee2d1c509.tar.gz
android_packages_apps_Snap-28da641e6d643698b20db69f0f89fffee2d1c509.tar.bz2
android_packages_apps_Snap-28da641e6d643698b20db69f0f89fffee2d1c509.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
-rw-r--r--src/com/android/camera/VideoModule.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index 91b154da6..86cf1d845 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -791,6 +791,7 @@ public class VideoModule extends BaseModule<VideoUI> implements
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