mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1133449 - [B2G] The default audio type didn't be set correctly when the call screen app is launched. r=baku
This commit is contained in:
parent
90f0589539
commit
c0f8ea7c78
@ -507,15 +507,15 @@ AudioChannelService::ProcessContentOrNormalChannelIsActive(uint64_t aChildID)
|
||||
|
||||
void
|
||||
AudioChannelService::SetDefaultVolumeControlChannel(int32_t aChannel,
|
||||
bool aHidden)
|
||||
bool aVisible)
|
||||
{
|
||||
SetDefaultVolumeControlChannelInternal(aChannel, aHidden,
|
||||
SetDefaultVolumeControlChannelInternal(aChannel, aVisible,
|
||||
CONTENT_PROCESS_ID_MAIN);
|
||||
}
|
||||
|
||||
void
|
||||
AudioChannelService::SetDefaultVolumeControlChannelInternal(int32_t aChannel,
|
||||
bool aHidden,
|
||||
bool aVisible,
|
||||
uint64_t aChildID)
|
||||
{
|
||||
if (XRE_GetProcessType() != GeckoProcessType_Default) {
|
||||
@ -525,7 +525,7 @@ AudioChannelService::SetDefaultVolumeControlChannelInternal(int32_t aChannel,
|
||||
// If this child is in the background and mDefChannelChildID is set to
|
||||
// others then it means other child in the foreground already set it's
|
||||
// own default channel already.
|
||||
if ((!aHidden && mDefChannelChildID != aChildID) ||
|
||||
if ((!aVisible && mDefChannelChildID != aChildID) ||
|
||||
(mDefChannelChildID != aChildID &&
|
||||
mDefChannelChildID != CONTENT_PROCESS_ID_UNKNOWN)) {
|
||||
return;
|
||||
|
@ -99,7 +99,7 @@ public:
|
||||
* AudioChannel enum.
|
||||
*/
|
||||
virtual void SetDefaultVolumeControlChannel(int32_t aChannel,
|
||||
bool aHidden);
|
||||
bool aVisible);
|
||||
|
||||
bool AnyAudioChannelIsActive();
|
||||
|
||||
@ -153,7 +153,7 @@ protected:
|
||||
|
||||
/* Send the default-volume-channel-changed notification */
|
||||
void SetDefaultVolumeControlChannelInternal(int32_t aChannel,
|
||||
bool aHidden, uint64_t aChildID);
|
||||
bool aVisible, uint64_t aChildID);
|
||||
|
||||
AudioChannelState CheckTelephonyPolicy(AudioChannel aChannel,
|
||||
uint64_t aChildID);
|
||||
|
Loading…
Reference in New Issue
Block a user