am 66769767: Merge "Treat the default sound Uri the same as DEFAULT_SOUND." into jb-mr2-dev
* commit '66769767b68f3fbe586c153d9d483916e4d9006b': Treat the default sound Uri the same as DEFAULT_SOUND.
This commit is contained in:
@@ -1676,8 +1676,12 @@ public class NotificationManagerService extends INotificationManager.Stub
|
||||
.getSystemService(Context.AUDIO_SERVICE);
|
||||
|
||||
// sound
|
||||
|
||||
// should we use the default notification sound? (indicated either by DEFAULT_SOUND
|
||||
// or because notification.sound is pointing at Settings.System.NOTIFICATION_SOUND)
|
||||
final boolean useDefaultSound =
|
||||
(notification.defaults & Notification.DEFAULT_SOUND) != 0;
|
||||
(notification.defaults & Notification.DEFAULT_SOUND) != 0
|
||||
|| Settings.System.DEFAULT_NOTIFICATION_URI.equals(notification.sound);
|
||||
|
||||
Uri soundUri = null;
|
||||
boolean hasValidSound = false;
|
||||
|
||||
Reference in New Issue
Block a user