Add notifications for new voicemails.
New voicemails trigger a broadcast: receive the broadcast and show the
notification in the status bar for it.
Lookup the number and contact name (if any) and include those in the
notification.
Bug: 4968670
Change-Id: I7c68458696199c47fe49b37a732fe10ce24e3fe9
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index f4c6227..56bf4e5 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -612,6 +612,16 @@
android:resource="@xml/social_widget_info" />
</receiver>
+ <receiver android:name=".calllog.NewVoicemailReceiver">
+ <intent-filter>
+ <action android:name="android.intent.action.NEW_VOICEMAIL" />
+ <data
+ android:scheme="content"
+ android:host="com.android.voicemail"
+ />
+ </intent-filter>
+ </receiver>
+
<activity
android:name=".socialwidget.SocialWidgetConfigureActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar" >