From b0b79c0a791b257e791407b9e06a27e880577d5d Mon Sep 17 00:00:00 2001 From: twyen Date: Tue, 19 Sep 2017 16:38:37 -0700 Subject: Show legacy voicemail notification under FBE This CL partially revert cl/159492498, since data SMS cannot be properly processed under FBE and visual voicemail notification won't be received. Bug: 65555345 Test: LegacyVoicemailNotificationReceiverTest PiperOrigin-RevId: 169321096 Change-Id: I7134d80479efef67de8d5d44131eea30f82297a0 --- .../dialer/app/voicemail/LegacyVoicemailNotificationReceiver.java | 2 ++ 1 file changed, 2 insertions(+) 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)) { -- cgit v1.2.3