summaryrefslogtreecommitdiffstats
path: root/AndroidManifest.xml
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2012-09-13 18:06:49 -0700
committerAmith Yamasani <yamasani@google.com>2012-09-13 23:32:35 -0700
commit32dccbc23fb905e109599389a7bed291b2a6385d (patch)
tree72667b3354f288e46f661656142c21a3000b3634 /AndroidManifest.xml
parentb6d7c9c6f93e3d50a3fc5ce2db900a10cbb258e4 (diff)
downloadpackages_apps_settings-32dccbc23fb905e109599389a7bed291b2a6385d.zip
packages_apps_settings-32dccbc23fb905e109599389a7bed291b2a6385d.tar.gz
packages_apps_settings-32dccbc23fb905e109599389a7bed291b2a6385d.tar.bz2
Watch for profile changes and push to user manager
If the contacts Me Profile changes, push a copy of the photo to user manager for user by the user switcher. Also use an async task to load the profile data. Change-Id: Ie784114622038ff14e3feb70f2ff51c372eecb3f
Diffstat (limited to 'AndroidManifest.xml')
-rw-r--r--AndroidManifest.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 24fc8b0..b1dd657 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -59,6 +59,7 @@
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
<uses-permission android:name="android.permission.COPY_PROTECTED_DATA" />
<uses-permission android:name="android.permission.MANAGE_USERS" />
+ <uses-permission android:name="android.permission.READ_PROFILE" />
<application android:label="@string/settings_label"
android:icon="@mipmap/ic_launcher_settings"
@@ -1489,5 +1490,12 @@
</intent-filter>
</receiver>
+ <!-- Watch for ContactsContract.Profile changes and update the user's photo. -->
+ <receiver android:name=".users.ProfileUpdateReceiver">
+ <intent-filter>
+ <action android:name="android.provider.Contacts.PROFILE_CHANGED" />
+ </intent-filter>
+ </receiver>
+
</application>
</manifest>