fix regression RecordingActivityMonitor
commit c7a0cdfe introduced a regression in audio recording
activity monitoring by using the wrong key to lookup for a client in
active recordings when a session stops.
Bug: 122113404
Test: android.media.cts.AudioRecordingConfigurationTest#testAudioManagerGetActiveRecordConfigurations
Change-Id: I06d87d086f391ae6e9adcd88f2235e002f88e682
This commit is contained in:
@@ -206,7 +206,7 @@ public final class RecordingActivityMonitor implements AudioSystem.AudioRecordin
|
||||
switch (event) {
|
||||
case AudioManager.RECORD_CONFIG_EVENT_STOP:
|
||||
// return failure if an unknown recording session stopped
|
||||
configChanged = (mRecordConfigs.remove(new Integer(session)) != null);
|
||||
configChanged = (mRecordConfigs.remove(new Integer(portId)) != null);
|
||||
if (configChanged) {
|
||||
sEventLogger.log(new RecordingEvent(event, uid, session, source, null));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user