Loading services/java/com/android/server/DockObserver.java +5 −1 Original line number Diff line number Diff line Loading @@ -41,6 +41,7 @@ import android.location.LocationListener; import android.location.LocationManager; import android.location.LocationProvider; import android.os.Binder; import android.media.AudioManager; import android.media.Ringtone; import android.media.RingtoneManager; import android.net.Uri; Loading Loading @@ -379,7 +380,10 @@ class DockObserver extends UEventObserver { 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(); } } } } Loading services/java/com/android/server/status/StatusBarPolicy.java +4 −1 Original line number Diff line number Diff line Loading @@ -826,7 +826,10 @@ public class StatusBarPolicy { 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(); } } } } Loading Loading
services/java/com/android/server/DockObserver.java +5 −1 Original line number Diff line number Diff line Loading @@ -41,6 +41,7 @@ import android.location.LocationListener; import android.location.LocationManager; import android.location.LocationProvider; import android.os.Binder; import android.media.AudioManager; import android.media.Ringtone; import android.media.RingtoneManager; import android.net.Uri; Loading Loading @@ -379,7 +380,10 @@ class DockObserver extends UEventObserver { 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(); } } } } Loading
services/java/com/android/server/status/StatusBarPolicy.java +4 −1 Original line number Diff line number Diff line Loading @@ -826,7 +826,10 @@ public class StatusBarPolicy { 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(); } } } } Loading