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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user