diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2017-09-20 06:18:36 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-09-20 06:18:36 +0000 |
commit | 851d79de4a52cd8fb90caafad6d4ed1d9ad07d00 (patch) | |
tree | 87c0468948641bdc71d31fb7275cba6c6a2b3ddf /java/com/android/dialer/app | |
parent | aa47240e862179817c4c2135b844516bcfa957c9 (diff) | |
parent | b0b79c0a791b257e791407b9e06a27e880577d5d (diff) |
Merge "Show legacy voicemail notification under FBE"
Diffstat (limited to 'java/com/android/dialer/app')
-rw-r--r-- | java/com/android/dialer/app/voicemail/LegacyVoicemailNotificationReceiver.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/java/com/android/dialer/app/voicemail/LegacyVoicemailNotificationReceiver.java b/java/com/android/dialer/app/voicemail/LegacyVoicemailNotificationReceiver.java index 4e43704f1..74ddff245 100644 --- a/java/com/android/dialer/app/voicemail/LegacyVoicemailNotificationReceiver.java +++ b/java/com/android/dialer/app/voicemail/LegacyVoicemailNotificationReceiver.java @@ -25,6 +25,7 @@ import android.os.Build; import android.os.Build.VERSION_CODES; import android.support.annotation.VisibleForTesting; import android.support.v4.os.BuildCompat; +import android.support.v4.os.UserManagerCompat; import android.telecom.PhoneAccountHandle; import android.telephony.TelephonyManager; import com.android.dialer.app.calllog.LegacyVoicemailNotifier; @@ -113,6 +114,7 @@ public class LegacyVoicemailNotificationReceiver extends BroadcastReceiver { } if (!intent.getBooleanExtra(VoicemailClient.EXTRA_IS_LEGACY_MODE, false) + && UserManagerCompat.isUserUnlocked(context) && VoicemailComponent.get(context) .getVoicemailClient() .isActivated(context, phoneAccountHandle)) { |