diff options
Diffstat (limited to 'src/com/android/dialer/calllog/CallLogNotificationsService.java')
-rw-r--r-- | src/com/android/dialer/calllog/CallLogNotificationsService.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/dialer/calllog/CallLogNotificationsService.java b/src/com/android/dialer/calllog/CallLogNotificationsService.java index 22809db8c..9f48b0969 100644 --- a/src/com/android/dialer/calllog/CallLogNotificationsService.java +++ b/src/com/android/dialer/calllog/CallLogNotificationsService.java @@ -22,6 +22,7 @@ import android.content.Intent; import android.net.Uri; import android.util.Log; +import com.android.contacts.common.util.PermissionsUtil; import com.android.dialer.util.TelecomUtil; /** @@ -78,6 +79,10 @@ public class CallLogNotificationsService extends IntentService { return; } + if (!PermissionsUtil.hasPhonePermissions(this)) { + return; + } + if (ACTION_MARK_NEW_VOICEMAILS_AS_OLD.equals(intent.getAction())) { mVoicemailQueryHandler.markNewVoicemailsAsOld(); } else if (ACTION_UPDATE_NOTIFICATIONS.equals(intent.getAction())) { |