summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrashant Srivastava <prsriv@codeaurora.org>2016-10-03 11:31:05 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2016-10-02 23:05:04 -0700
commit049f6bd555fd8e182c2a645952854104b6097835 (patch)
tree3960a15c4df118781c418147c6c1169c9c88a36f
parent5cda28acc2a3edbd201819c2b1b2d7d219b7c4d4 (diff)
downloadandroid_packages_services_Telephony-049f6bd555fd8e182c2a645952854104b6097835.tar.gz
android_packages_services_Telephony-049f6bd555fd8e182c2a645952854104b6097835.tar.bz2
android_packages_services_Telephony-049f6bd555fd8e182c2a645952854104b6097835.zip
Telephony: Voice mail notification should not be cleared.
-- Changed setOngoing flag to true for specific operator requirement. When clear notification is done for notification bar VM notification should not be cleared from notification bar. Change-Id: Icaeece56ef84dd5a3e180b5851ee246965f628f2 CRs-Fixed: 1073520
-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);