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

Commit 908a0a2d authored by Hayden Gomes's avatar Hayden Gomes
Browse files

Fix AudioControl@2.0 fade check

Fade now checks isValidValue rather than !isValidValue

Bug: 155225937
Test: built ran and adjusted fade
Change-Id: I21b0dee8ebd677217b037c38cc744a77cf145709
parent 02397292
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ Return<void> AudioControl::setBalanceTowardRight(float value) {
}

Return<void> AudioControl::setFadeTowardFront(float value) {
    if (!isValidValue(value)) {
    if (isValidValue(value)) {
        // Just log in this default mock implementation
        LOG(INFO) << "Fader set to " << value;
    } else {