diff options
Diffstat (limited to 'java/com/android/voicemail/impl/fetch/FetchVoicemailReceiver.java')
-rw-r--r-- | java/com/android/voicemail/impl/fetch/FetchVoicemailReceiver.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/com/android/voicemail/impl/fetch/FetchVoicemailReceiver.java b/java/com/android/voicemail/impl/fetch/FetchVoicemailReceiver.java index 07e800836..b0285672e 100644 --- a/java/com/android/voicemail/impl/fetch/FetchVoicemailReceiver.java +++ b/java/com/android/voicemail/impl/fetch/FetchVoicemailReceiver.java @@ -34,6 +34,7 @@ import android.telecom.PhoneAccountHandle; import android.telecom.TelecomManager; import android.telephony.TelephonyManager; import android.text.TextUtils; +import com.android.voicemail.VoicemailComponent; import com.android.voicemail.impl.VoicemailStatus; import com.android.voicemail.impl.VvmLog; import com.android.voicemail.impl.imap.ImapHelper; @@ -73,6 +74,9 @@ public class FetchVoicemailReceiver extends BroadcastReceiver { @Override public void onReceive(final Context context, Intent intent) { + if (!VoicemailComponent.get(context).getVoicemailClient().isVoicemailModuleEnabled()) { + return; + } if (VoicemailContract.ACTION_FETCH_VOICEMAIL.equals(intent.getAction())) { VvmLog.i(TAG, "ACTION_FETCH_VOICEMAIL received"); mContext = context; |