mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 19:33:18 +00:00
Bug 809577 - ifdef around gonk-only audiomanager code. r=benadida
This commit is contained in:
parent
206cf73a3d
commit
a100b0be96
@ -56,6 +56,7 @@ var SettingsListener = {
|
||||
SettingsListener.init();
|
||||
|
||||
// =================== Audio ====================
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
SettingsListener.observe('audio.volume.master', 0.5, function(value) {
|
||||
let audioManager = Services.audioManager;
|
||||
if (!audioManager)
|
||||
@ -91,6 +92,7 @@ for each (let [setting, defaultValue, streamType] in audioSettings) {
|
||||
});
|
||||
})(setting, defaultValue, streamType);
|
||||
}
|
||||
#endif
|
||||
|
||||
// =================== Console ======================
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user