summaryrefslogtreecommitdiffstats
path: root/java/com/android/dialer/app
diff options
context:
space:
mode:
authortwyen <twyen@google.com>2017-06-19 16:01:47 -0700
committerEric Erfanian <erfanian@google.com>2017-06-21 15:59:58 +0000
commit77576d6cf2e2babd3dff67c0c4ff692ea46f9b3d (patch)
tree2a20ba2e61fcc2fc684f11ad7e7e5859c647d779 /java/com/android/dialer/app
parent1b858f2dd10e04699440dfb44b6bd8d751a433d1 (diff)
downloadandroid_packages_apps_Dialer-77576d6cf2e2babd3dff67c0c4ff692ea46f9b3d.tar.gz
android_packages_apps_Dialer-77576d6cf2e2babd3dff67c0c4ff692ea46f9b3d.tar.bz2
android_packages_apps_Dialer-77576d6cf2e2babd3dff67c0c4ff692ea46f9b3d.zip
Move VVM activation state to device protected storage
VVM activation state is required to suppress legacy voicemail notification. It should not be shown if VVM is activated. Before this CL this information is stored in credential protected storage, and cannot be accessed right after boot. Telephony might have a stale VM count and will attempt to refresh the notification after reboot, which will not be suppressed. In this CL the activation state is moved to device protected storage. Other account info are sensitive and remain in credential protected storage. Test: TH PiperOrigin-RevId: 159492498 Change-Id: I918546cd9874e47c4aa96889aa35916ca6c59890
Diffstat (limited to 'java/com/android/dialer/app')
-rw-r--r--java/com/android/dialer/app/voicemail/LegacyVoicemailNotificationReceiver.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/java/com/android/dialer/app/voicemail/LegacyVoicemailNotificationReceiver.java b/java/com/android/dialer/app/voicemail/LegacyVoicemailNotificationReceiver.java
index a7cfc0c00..b86ce8229 100644
--- a/java/com/android/dialer/app/voicemail/LegacyVoicemailNotificationReceiver.java
+++ b/java/com/android/dialer/app/voicemail/LegacyVoicemailNotificationReceiver.java
@@ -82,10 +82,9 @@ public class LegacyVoicemailNotificationReceiver extends BroadcastReceiver {
return;
}
- if (UserManagerCompat.isUserUnlocked(context)
- && VoicemailComponent.get(context)
- .getVoicemailClient()
- .isActivated(context, phoneAccountHandle)) {
+ if (VoicemailComponent.get(context)
+ .getVoicemailClient()
+ .isActivated(context, phoneAccountHandle)) {
LogUtil.i(
"LegacyVoicemailNotificationReceiver.onReceive",
"visual voicemail is activated, ignoring notification");