diff options
author | Eric Erfanian <erfanian@google.com> | 2017-03-24 09:31:16 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-03-27 08:56:19 -0700 |
commit | 9050823ccf6f512e06ad65c8a741cb17cbc4a833 (patch) | |
tree | e454c9e0fa20b8384fa87d4e6309bb8b9e3aa2a4 /java/com/android/dialer/app/calllog/DefaultVoicemailNotifier.java | |
parent | dd9d50805f1b49dff1fe3787740393d726124cdb (diff) | |
download | android_packages_apps_Dialer-9050823ccf6f512e06ad65c8a741cb17cbc4a833.tar.gz android_packages_apps_Dialer-9050823ccf6f512e06ad65c8a741cb17cbc4a833.tar.bz2 android_packages_apps_Dialer-9050823ccf6f512e06ad65c8a741cb17cbc4a833.zip |
Update AOSP Dialer source from internal google3 repository at
cl/151128062
Test: make, treehugger
This CL updates the AOSP Dialer source with all the changes that have
gone into the private google3 repository. This includes all the
changes from cl/150756069 (3/21/2017) to cl/151128062 (3/24/2017).
Notable this release:
- Explicitly enumerate host and target dependencies.
- Update proguard flag references.
This goal of these drops is to keep the AOSP source in sync with the
internal google3 repository. Currently these sync are done by hand
with very minor modifications to the internal source code.
See the Android.mk file for list of modifications.
Our current goal is to do frequent drops (daily if possible) and
eventually switched to an automated process.
Bug: 33210202 36511925
Addresses
33210202 - Proguard support
36511925 - Compiler warnings when building against platform sdk
Change-Id: I448ec3b3f2358886859cf7a4ef76a8fcef3244ae
Diffstat (limited to 'java/com/android/dialer/app/calllog/DefaultVoicemailNotifier.java')
-rw-r--r-- | java/com/android/dialer/app/calllog/DefaultVoicemailNotifier.java | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/java/com/android/dialer/app/calllog/DefaultVoicemailNotifier.java b/java/com/android/dialer/app/calllog/DefaultVoicemailNotifier.java index 02d23e996..b0a6ee135 100644 --- a/java/com/android/dialer/app/calllog/DefaultVoicemailNotifier.java +++ b/java/com/android/dialer/app/calllog/DefaultVoicemailNotifier.java @@ -113,8 +113,10 @@ public class DefaultVoicemailNotifier { context, newCall.number, newCall.countryIso, newCall.dateMs)) { itr.remove(); - // Delete the voicemail. - context.getContentResolver().delete(newCall.voicemailUri, null, null); + if (newCall.voicemailUri != null) { + // Delete the voicemail. + context.getContentResolver().delete(newCall.voicemailUri, null, null); + } continue; } @@ -137,8 +139,7 @@ public class DefaultVoicemailNotifier { } if (newCalls.isEmpty()) { - // No voicemails to notify about: clear the notification. - CallLogNotificationsService.markNewVoicemailsAsOld(context, null); + // No voicemails to notify about return; } @@ -164,7 +165,7 @@ public class DefaultVoicemailNotifier { for (NewCall voicemail : newCalls) { getNotificationManager() .notify( - voicemail.voicemailUri.toString(), + voicemail.callsUri.toString(), NOTIFICATION_ID, createNotificationForVoicemail(voicemail, contactInfos)); } @@ -234,8 +235,12 @@ public class DefaultVoicemailNotifier { contactInfo.name)) .setWhen(voicemail.dateMs) .setSound(notificationInfo.first) - .setDefaults(notificationInfo.second) - .setDeleteIntent(createMarkNewVoicemailsAsOldIntent(voicemail.voicemailUri)); + .setDefaults(notificationInfo.second); + + if (voicemail.voicemailUri != null) { + notificationBuilder.setDeleteIntent( + createMarkNewVoicemailsAsOldIntent(voicemail.voicemailUri)); + } NotificationChannelManager.applyChannel( notificationBuilder, |