diff options
author | Brandon Maxwell <maxwelb@google.com> | 2016-01-28 18:49:03 -0800 |
---|---|---|
committer | Brandon Maxwell <maxwelb@google.com> | 2016-01-28 19:02:26 -0800 |
commit | 56bba2008833c136e7c584782f3b3169f2f9f91e (patch) | |
tree | c30091f2f3b246b893ef30501e22191141cc3710 /InCallUI/src | |
parent | 7a71ab49f531925dcc2dc9b6511bd27d75ec9775 (diff) |
Adding flag to enable/disable Dialer ringing
Bug=26864105
Change-Id: Ifc565320dd9fd8845c45551454e59020806d985c
Diffstat (limited to 'InCallUI/src')
-rw-r--r-- | InCallUI/src/com/android/incallui/StatusBarNotifier.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/InCallUI/src/com/android/incallui/StatusBarNotifier.java b/InCallUI/src/com/android/incallui/StatusBarNotifier.java index 877ad65a9..e0bca4446 100644 --- a/InCallUI/src/com/android/incallui/StatusBarNotifier.java +++ b/InCallUI/src/com/android/incallui/StatusBarNotifier.java @@ -61,6 +61,11 @@ import java.util.Objects; public class StatusBarNotifier implements InCallPresenter.InCallStateListener, CallList.CallUpdateListener { + /* + * Flag used to determine if the Dialer is responsible for playing ringtones for incoming calls. + */ + private static final boolean IS_DIALER_RINGING_ENABLED = false; + // Notification types // Indicates that no notification is currently showing. private static final int NOTIFICATION_NONE = 0; @@ -318,7 +323,8 @@ public class StatusBarNotifier implements InCallPresenter.InCallStateListener, * Until the lookup is complete, the ringtone Uri is null */ private boolean shouldNotificationPlayRingtone(int notificationType, Uri ringtoneUri) { - return CompatUtils.isNCompatible() && notificationType == NOTIFICATION_INCOMING_CALL + return CompatUtils.isNCompatible() && IS_DIALER_RINGING_ENABLED + && notificationType == NOTIFICATION_INCOMING_CALL && ringtoneUri != null; } |