OSDN Git Service

Granting read permission in the result intent for VIDEO_CAPTURE.
authorNicolas Prevot <nprevot@google.com>
Tue, 9 Sep 2014 19:35:56 +0000 (20:35 +0100)
committerNicolas Prevot <nprevot@google.com>
Tue, 9 Sep 2014 19:35:56 +0000 (20:35 +0100)
BUG:17437266
Change-Id: I84d1a69a3d314a05a7e3b5c949c896700426644e

src/com/android/camera/VideoModule.java

index 0bdb9a3..e9d7405 100644 (file)
@@ -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;
         }