summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/ui
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2012-10-16 10:22:54 +0800
committerHung-ying Tyan <tyanh@google.com>2012-10-17 12:17:59 +0800
commitf36e53f7c59380670327a600b2766b3b42edbc2c (patch)
tree31ee100e3cb1354e056b08643cfa7d3368dd62c1 /src/com/android/gallery3d/ui
parent2ad7b55cb31487fbfdbd50d60eb3e929cad0b42f (diff)
downloadandroid_packages_apps_Snap-f36e53f7c59380670327a600b2766b3b42edbc2c.tar.gz
android_packages_apps_Snap-f36e53f7c59380670327a600b2766b3b42edbc2c.tar.bz2
android_packages_apps_Snap-f36e53f7c59380670327a600b2766b3b42edbc2c.zip
Add permission to GalleryProvider.
bug: 7202384 Change-Id: I1a13ed7e480163c898cf376219953b321290d4d4
Diffstat (limited to 'src/com/android/gallery3d/ui')
-rw-r--r--src/com/android/gallery3d/ui/ActionModeHandler.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/ui/ActionModeHandler.java b/src/com/android/gallery3d/ui/ActionModeHandler.java
index 8cebdddad..3384b88e3 100644
--- a/src/com/android/gallery3d/ui/ActionModeHandler.java
+++ b/src/com/android/gallery3d/ui/ActionModeHandler.java
@@ -280,6 +280,7 @@ public class ActionModeHandler implements Callback, PopupList.OnPopupItemClickLi
intent.setType(GalleryUtils.MIME_TYPE_PANORAMA360);
intent.putExtra(Intent.EXTRA_STREAM, uris.get(0));
}
+ intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
}
return intent;
@@ -315,6 +316,7 @@ public class ActionModeHandler implements Callback, PopupList.OnPopupItemClickLi
intent.setAction(Intent.ACTION_SEND).setType(mimeType);
intent.putExtra(Intent.EXTRA_STREAM, uris.get(0));
}
+ intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
setNfcBeamPushUris(uris.toArray(new Uri[uris.size()]));
} else {
setNfcBeamPushUris(null);