diff options
author | Brandon Maxwell <maxwelb@google.com> | 2016-01-29 03:08:50 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-01-29 03:08:50 +0000 |
commit | d1faa572a1a430f429ea80b931a35fdf46124032 (patch) | |
tree | a0e44b06191c9e5515bba37d9a24c7980bd0d62d /InCallUI | |
parent | 58db7d00e9727bb5d220d7c4c09464dcc6e46eb9 (diff) | |
parent | 56bba2008833c136e7c584782f3b3169f2f9f91e (diff) |
Adding flag to enable/disable Dialer ringing
am: b68e8129c0
* commit 'b68e8129c056c60e78188e6fbcd6179406723eaa':
Adding flag to enable/disable Dialer ringing
Diffstat (limited to 'InCallUI')
-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; } |