Loading services/core/java/com/android/server/audio/AudioService.java +12 −7 Original line number Diff line number Diff line Loading @@ -8677,8 +8677,12 @@ public class AudioService extends IAudioService.Stub // fire changed intents for all streams, but only when the device it changed on // is the current device if ((index != oldIndex) && isCurrentDevice) { // for single volume devices, only send the volume change broadcast // on the alias stream if (!mIsSingleVolume || (mStreamVolumeAlias[mStreamType] == mStreamType)) { mVolumeChanged.putExtra(AudioManager.EXTRA_VOLUME_STREAM_VALUE, index); mVolumeChanged.putExtra(AudioManager.EXTRA_PREV_VOLUME_STREAM_VALUE, oldIndex); mVolumeChanged.putExtra(AudioManager.EXTRA_PREV_VOLUME_STREAM_VALUE, oldIndex); mVolumeChanged.putExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE_ALIAS, mStreamVolumeAlias[mStreamType]); AudioService.sVolumeLogger.enqueue(new VolChangedBroadcastEvent( Loading @@ -8686,6 +8690,7 @@ public class AudioService extends IAudioService.Stub sendBroadcastToAll(mVolumeChanged, mVolumeChangedOptions); } } } return changed; } Loading Loading
services/core/java/com/android/server/audio/AudioService.java +12 −7 Original line number Diff line number Diff line Loading @@ -8677,8 +8677,12 @@ public class AudioService extends IAudioService.Stub // fire changed intents for all streams, but only when the device it changed on // is the current device if ((index != oldIndex) && isCurrentDevice) { // for single volume devices, only send the volume change broadcast // on the alias stream if (!mIsSingleVolume || (mStreamVolumeAlias[mStreamType] == mStreamType)) { mVolumeChanged.putExtra(AudioManager.EXTRA_VOLUME_STREAM_VALUE, index); mVolumeChanged.putExtra(AudioManager.EXTRA_PREV_VOLUME_STREAM_VALUE, oldIndex); mVolumeChanged.putExtra(AudioManager.EXTRA_PREV_VOLUME_STREAM_VALUE, oldIndex); mVolumeChanged.putExtra(AudioManager.EXTRA_VOLUME_STREAM_TYPE_ALIAS, mStreamVolumeAlias[mStreamType]); AudioService.sVolumeLogger.enqueue(new VolChangedBroadcastEvent( Loading @@ -8686,6 +8690,7 @@ public class AudioService extends IAudioService.Stub sendBroadcastToAll(mVolumeChanged, mVolumeChangedOptions); } } } return changed; } Loading