Explicitly set notification audio stream. Not sure if this is going to do anything, but can't hurt.

pull/14/head
Tim Su 16 years ago
parent 9dde385582
commit d6d1d56672

@ -453,6 +453,8 @@ public class Notifications extends BroadcastReceiver {
notification.audioStreamType = AudioManager.STREAM_ALARM;
audioManager.setStreamVolume(AudioManager.STREAM_ALARM,
audioManager.getStreamMaxVolume(AudioManager.STREAM_ALARM), 0);
} else {
notification.audioStreamType = AudioManager.STREAM_NOTIFICATION;
}
// quiet hours = no sound

Loading…
Cancel
Save