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

Commit 7f7a0a88 authored by Eric Laurent's avatar Eric Laurent Committed by android-build-merger
Browse files

Merge "audio HAL: fix getParameters status check." into oc-dev

am: af7bc59c

Change-Id: Icd5926031ace47bc0dc1b1f24cb48e107851fcd7
parents 86afc395 af7bc59c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -78,8 +78,9 @@ void ParametersUtil::getParametersImpl(
        halKeys.addKey(String8(keys[i].c_str()));
    }
    std::unique_ptr<AudioParameter> halValues = getParams(halKeys);
    Result retval =
        halValues->size() == keys.size() ? Result::OK : Result::NOT_SUPPORTED;
    Result retval = (keys.size() == 0 || halValues->size() != 0)
                        ? Result::OK
                        : Result::NOT_SUPPORTED;
    hidl_vec<ParameterValue> result;
    result.resize(halValues->size());
    String8 halKey, halValue;