summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/VideoModule.java
diff options
context:
space:
mode:
authorNicolas Prevot <nprevot@google.com>2014-09-09 20:35:56 +0100
committerNicolas Prevot <nprevot@google.com>2014-09-09 20:35:56 +0100
commit44917f6b63804715be666a01ad79b262fb041b80 (patch)
tree36a7e498c968c1dad5e85dc29ef6cd0ee25aeb92 /src/com/android/camera/VideoModule.java
parent767a1186a1127f070785d50054a0e1a02975eb4a (diff)
downloadandroid_packages_apps_Camera2-44917f6b63804715be666a01ad79b262fb041b80.tar.gz
android_packages_apps_Camera2-44917f6b63804715be666a01ad79b262fb041b80.tar.bz2
android_packages_apps_Camera2-44917f6b63804715be666a01ad79b262fb041b80.zip
Granting read permission in the result intent for VIDEO_CAPTURE.
BUG:17437266 Change-Id: I84d1a69a3d314a05a7e3b5c949c896700426644e
Diffstat (limited to 'src/com/android/camera/VideoModule.java')
-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 0bdb9a316..e9d7405f7 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -1049,6 +1049,7 @@ public class VideoModule extends CameraModule
if (valid) {
resultCode = Activity.RESULT_OK;
resultIntent.setData(mCurrentVideoUri);
+ resultIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
} else {
resultCode = Activity.RESULT_CANCELED;
}