commit | ec2c88d835dac156be0d14bd2b73cf3825e2e164 | [log] [tgz] |
---|---|---|
author | Daniel Sandler <dsandler@google.com> | Sat Feb 20 01:04:57 2010 -0500 |
committer | Daniel Sandler <dsandler@google.com> | Mon Feb 22 15:10:38 2010 -0500 |
tree | dd1a7805c6951214ebb60fde3a2f7c28d358cc5a | |
parent | 9a56aaf12b462a064e81e02386eca8a1e77fe737 [diff] [blame] |
Move new sound effects to the system stream. Change-Id: I11cfa6495abeb0193b1a3929ec54f0386cfe9ed2
diff --git a/services/java/com/android/server/status/StatusBarPolicy.java b/services/java/com/android/server/status/StatusBarPolicy.java index d13f9d3..f1ccb9b 100644 --- a/services/java/com/android/server/status/StatusBarPolicy.java +++ b/services/java/com/android/server/status/StatusBarPolicy.java
@@ -826,7 +826,10 @@ final Uri soundUri = Uri.parse("file://" + soundPath); if (soundUri != null) { final Ringtone sfx = RingtoneManager.getRingtone(mContext, soundUri); - if (sfx != null) sfx.play(); + if (sfx != null) { + sfx.setStreamType(AudioManager.STREAM_SYSTEM); + sfx.play(); + } } } }