summaryrefslogtreecommitdiffstats
path: root/AndroidManifest.xml
diff options
context:
space:
mode:
authorScott Warner <Tortel1210@gmail.com>2015-04-25 18:20:16 +0200
committerGerrit Code Review <gerrit@cyanogenmod.org>2015-05-31 00:48:12 +0000
commita33834eae3f5b6b84331bc6c97a414c7471902c9 (patch)
tree67239ff64724a2b77d61c1670dff2aa643d4acd5 /AndroidManifest.xml
parent7622a903cad605fb0ebd987a4f0b248b27c4de38 (diff)
downloadandroid_packages_apps_Gallery2-a33834eae3f5b6b84331bc6c97a414c7471902c9.zip
android_packages_apps_Gallery2-a33834eae3f5b6b84331bc6c97a414c7471902c9.tar.gz
android_packages_apps_Gallery2-a33834eae3f5b6b84331bc6c97a414c7471902c9.tar.bz2
Add Storage preference (2/2)
Based on CM11, this patch adds an intent listener to listen for storage path changes from the camera app and set the default camera folder. Change-Id: I5efec988136c6daaffe9d209278b6aa4ca29116b
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r--AndroidManifest.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 5171dc4..88a218c 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -29,6 +29,9 @@
<permission android:name="com.android.gallery3d.permission.GALLERY_PROVIDER"
android:protectionLevel="signatureOrSystem" />
+ <permission android:name="com.android.gallery3d.permission.STORAGE_CHANGE"
+ android:protectionLevel="signatureOrSystem" />
+
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
@@ -393,6 +396,14 @@
</intent-filter>
</receiver>
+ <!-- Receiver to keep the storage path for the camera in sync -->
+ <receiver android:name="com.android.gallery3d.app.StorageChangeReceiver"
+ android:permission="com.android.gallery3d.permission.STORAGE_CHANGE" >
+ <intent-filter>
+ <action android:name="com.android.gallery3d.STORAGE_CHANGE" />
+ </intent-filter>
+ </receiver>
+
<service android:name="com.android.camera.MediaSaveService" />
<activity android:name="org.codeaurora.gallery3d.video.SettingsActivity"