summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--res/values/config.xml2
-rw-r--r--src/com/android/phone/NotificationMgr.java6
2 files changed, 8 insertions, 0 deletions
diff --git a/res/values/config.xml b/res/values/config.xml
index dd459192d..8e33a7232 100644
--- a/res/values/config.xml
+++ b/res/values/config.xml
@@ -243,4 +243,6 @@
<!-- Flag indicating whether to allow limit video confernece call max supported -->
<bool name="config_enable_video_conference_call_limit">false</bool>
+ <!-- To show VMNotification always until user reads it-->
+ <bool name="config_show_vm_notification_always" translatable="false">false</bool>
</resources>
diff --git a/src/com/android/phone/NotificationMgr.java b/src/com/android/phone/NotificationMgr.java
index 95232e80b..85e28aed9 100644
--- a/src/com/android/phone/NotificationMgr.java
+++ b/src/com/android/phone/NotificationMgr.java
@@ -339,6 +339,12 @@ public class NotificationMgr {
.setColor(res.getColor(R.color.dialer_theme_color))
.setOngoing(carrierConfig.getBoolean(
CarrierConfigManager.KEY_VOICEMAIL_NOTIFICATION_PERSISTENT_BOOL));
+ //User should not be able to clear VMNotification without
+ //reading it by clear or swipe option.
+ if (mContext.getResources().getBoolean(
+ R.bool.config_show_vm_notification_always)) {
+ builder.setOngoing(true);
+ }
if (VoicemailNotificationSettingsUtil.isVibrationEnabled(phone)) {
builder.setDefaults(Notification.DEFAULT_VIBRATE);