Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1b7b6dd1 authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

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