Fix refactoring error in MicrophoneInfo

A line creating an output array was removed by mistake
during refactoring, add it back.

Bug: 206738075
Test: atest CtsMediaAudioTestCases:AudioRecordTest#testGetActiveMicrophones
Change-Id: I8562a403b27094954d90e97d1298fd5e8cdec843
This commit is contained in:
Mikhail Naganov
2023-02-21 11:57:06 -08:00
parent c79f3cde35
commit 1b7b6dd105

View File

@@ -92,6 +92,7 @@ jint convertMicrophoneInfoFromNative(JNIEnv *env, jobject *jMicrophoneInfo,
env->DeleteLocalRef(jFrequencyResponse);
}
// Create a list of Pair for channel mapping.
jChannelMappings = env->NewObject(gArrayListClass, gArrayListCstor);
const auto &channelMapping = micInfo.channel_mapping;
for (size_t i = 0; i < std::size(channelMapping); i++) {
int channelMappingType = channelMapping[i];